Initial commit.
Make Nebula compile cleanly (fix some potential overflows and clean up the style of the code).
This commit is contained in:
commit
be01821aec
93
.deps/filesave.Po
Normal file
93
.deps/filesave.Po
Normal file
@ -0,0 +1,93 @@
|
|||||||
|
filesave.o: filesave.c /usr/include/stdio.h /usr/include/features.h \
|
||||||
|
/usr/include/bits/alltypes.h /usr/include/Xm/Xm.h \
|
||||||
|
/usr/include/X11/Intrinsic.h /usr/include/X11/Xlib.h \
|
||||||
|
/usr/include/sys/types.h /usr/include/endian.h /usr/include/sys/select.h \
|
||||||
|
/usr/include/X11/X.h /usr/include/X11/Xfuncproto.h \
|
||||||
|
/usr/include/X11/Xosdefs.h /usr/include/stddef.h \
|
||||||
|
/usr/include/X11/Xutil.h /usr/include/X11/keysym.h \
|
||||||
|
/usr/include/X11/keysymdef.h /usr/include/X11/Xresource.h \
|
||||||
|
/usr/include/string.h /usr/include/strings.h /usr/include/X11/Core.h \
|
||||||
|
/usr/include/X11/Composite.h /usr/include/X11/Constraint.h \
|
||||||
|
/usr/include/X11/Object.h /usr/include/X11/RectObj.h \
|
||||||
|
/usr/include/X11/Shell.h /usr/include/X11/SM/SMlib.h \
|
||||||
|
/usr/include/X11/SM/SM.h /usr/include/X11/ICE/ICElib.h \
|
||||||
|
/usr/include/X11/ICE/ICE.h /usr/include/X11/Xatom.h \
|
||||||
|
/usr/include/Xm/XmStrDefs.h /usr/include/X11/StringDefs.h \
|
||||||
|
/usr/include/Xm/XmStrDefs22.h /usr/include/Xm/XmStrDefs23.h \
|
||||||
|
/usr/include/Xm/VirtKeys.h /usr/include/Xm/Transfer.h \
|
||||||
|
/usr/include/Xm/DragC.h /usr/include/Xm/Display.h \
|
||||||
|
/usr/include/Xm/DropSMgr.h /usr/include/Xm/Primitive.h \
|
||||||
|
/usr/include/Xm/Manager.h /usr/include/Xm/Gadget.h \
|
||||||
|
/usr/include/Xm/TxtPropCv.h /usr/include/Xm/VendorS.h \
|
||||||
|
/usr/include/Xm/XmIm.h /usr/include/Xm/Text.h \
|
||||||
|
/usr/include/Xm/SelectioB.h /usr/include/Xm/FileSB.h main.h config.h \
|
||||||
|
/usr/include/netdb.h /usr/include/netinet/in.h /usr/include/inttypes.h \
|
||||||
|
/usr/include/stdint.h /usr/include/bits/stdint.h \
|
||||||
|
/usr/include/sys/socket.h /usr/include/bits/socket.h \
|
||||||
|
/usr/include/sys/param.h /usr/include/sys/resource.h \
|
||||||
|
/usr/include/sys/time.h /usr/include/bits/resource.h \
|
||||||
|
/usr/include/limits.h /usr/include/bits/limits.h /usr/include/assert.h
|
||||||
|
/usr/include/stdio.h:
|
||||||
|
/usr/include/features.h:
|
||||||
|
/usr/include/bits/alltypes.h:
|
||||||
|
/usr/include/Xm/Xm.h:
|
||||||
|
/usr/include/X11/Intrinsic.h:
|
||||||
|
/usr/include/X11/Xlib.h:
|
||||||
|
/usr/include/sys/types.h:
|
||||||
|
/usr/include/endian.h:
|
||||||
|
/usr/include/sys/select.h:
|
||||||
|
/usr/include/X11/X.h:
|
||||||
|
/usr/include/X11/Xfuncproto.h:
|
||||||
|
/usr/include/X11/Xosdefs.h:
|
||||||
|
/usr/include/stddef.h:
|
||||||
|
/usr/include/X11/Xutil.h:
|
||||||
|
/usr/include/X11/keysym.h:
|
||||||
|
/usr/include/X11/keysymdef.h:
|
||||||
|
/usr/include/X11/Xresource.h:
|
||||||
|
/usr/include/string.h:
|
||||||
|
/usr/include/strings.h:
|
||||||
|
/usr/include/X11/Core.h:
|
||||||
|
/usr/include/X11/Composite.h:
|
||||||
|
/usr/include/X11/Constraint.h:
|
||||||
|
/usr/include/X11/Object.h:
|
||||||
|
/usr/include/X11/RectObj.h:
|
||||||
|
/usr/include/X11/Shell.h:
|
||||||
|
/usr/include/X11/SM/SMlib.h:
|
||||||
|
/usr/include/X11/SM/SM.h:
|
||||||
|
/usr/include/X11/ICE/ICElib.h:
|
||||||
|
/usr/include/X11/ICE/ICE.h:
|
||||||
|
/usr/include/X11/Xatom.h:
|
||||||
|
/usr/include/Xm/XmStrDefs.h:
|
||||||
|
/usr/include/X11/StringDefs.h:
|
||||||
|
/usr/include/Xm/XmStrDefs22.h:
|
||||||
|
/usr/include/Xm/XmStrDefs23.h:
|
||||||
|
/usr/include/Xm/VirtKeys.h:
|
||||||
|
/usr/include/Xm/Transfer.h:
|
||||||
|
/usr/include/Xm/DragC.h:
|
||||||
|
/usr/include/Xm/Display.h:
|
||||||
|
/usr/include/Xm/DropSMgr.h:
|
||||||
|
/usr/include/Xm/Primitive.h:
|
||||||
|
/usr/include/Xm/Manager.h:
|
||||||
|
/usr/include/Xm/Gadget.h:
|
||||||
|
/usr/include/Xm/TxtPropCv.h:
|
||||||
|
/usr/include/Xm/VendorS.h:
|
||||||
|
/usr/include/Xm/XmIm.h:
|
||||||
|
/usr/include/Xm/Text.h:
|
||||||
|
/usr/include/Xm/SelectioB.h:
|
||||||
|
/usr/include/Xm/FileSB.h:
|
||||||
|
main.h:
|
||||||
|
config.h:
|
||||||
|
/usr/include/netdb.h:
|
||||||
|
/usr/include/netinet/in.h:
|
||||||
|
/usr/include/inttypes.h:
|
||||||
|
/usr/include/stdint.h:
|
||||||
|
/usr/include/bits/stdint.h:
|
||||||
|
/usr/include/sys/socket.h:
|
||||||
|
/usr/include/bits/socket.h:
|
||||||
|
/usr/include/sys/param.h:
|
||||||
|
/usr/include/sys/resource.h:
|
||||||
|
/usr/include/sys/time.h:
|
||||||
|
/usr/include/bits/resource.h:
|
||||||
|
/usr/include/limits.h:
|
||||||
|
/usr/include/bits/limits.h:
|
||||||
|
/usr/include/assert.h:
|
97
.deps/help.Po
Normal file
97
.deps/help.Po
Normal file
@ -0,0 +1,97 @@
|
|||||||
|
help.o: help.c /usr/include/Xm/Xm.h /usr/include/X11/Intrinsic.h \
|
||||||
|
/usr/include/X11/Xlib.h /usr/include/sys/types.h /usr/include/features.h \
|
||||||
|
/usr/include/bits/alltypes.h /usr/include/endian.h \
|
||||||
|
/usr/include/sys/select.h /usr/include/X11/X.h \
|
||||||
|
/usr/include/X11/Xfuncproto.h /usr/include/X11/Xosdefs.h \
|
||||||
|
/usr/include/stddef.h /usr/include/X11/Xutil.h /usr/include/X11/keysym.h \
|
||||||
|
/usr/include/X11/keysymdef.h /usr/include/X11/Xresource.h \
|
||||||
|
/usr/include/string.h /usr/include/strings.h /usr/include/X11/Core.h \
|
||||||
|
/usr/include/X11/Composite.h /usr/include/X11/Constraint.h \
|
||||||
|
/usr/include/X11/Object.h /usr/include/X11/RectObj.h \
|
||||||
|
/usr/include/X11/Shell.h /usr/include/X11/SM/SMlib.h \
|
||||||
|
/usr/include/X11/SM/SM.h /usr/include/X11/ICE/ICElib.h \
|
||||||
|
/usr/include/X11/ICE/ICE.h /usr/include/X11/Xatom.h \
|
||||||
|
/usr/include/Xm/XmStrDefs.h /usr/include/X11/StringDefs.h \
|
||||||
|
/usr/include/Xm/XmStrDefs22.h /usr/include/Xm/XmStrDefs23.h \
|
||||||
|
/usr/include/Xm/VirtKeys.h /usr/include/Xm/Transfer.h \
|
||||||
|
/usr/include/Xm/DragC.h /usr/include/Xm/Display.h \
|
||||||
|
/usr/include/Xm/DropSMgr.h /usr/include/Xm/Primitive.h \
|
||||||
|
/usr/include/Xm/Manager.h /usr/include/Xm/Gadget.h \
|
||||||
|
/usr/include/Xm/TxtPropCv.h /usr/include/Xm/VendorS.h \
|
||||||
|
/usr/include/Xm/XmIm.h /usr/include/Xm/MessageB.h \
|
||||||
|
/usr/include/Xm/SelectioB.h /usr/include/Xm/Text.h /usr/include/stdio.h \
|
||||||
|
/usr/include/Xm/Form.h /usr/include/Xm/BulletinB.h main.h config.h \
|
||||||
|
/usr/include/netdb.h /usr/include/netinet/in.h /usr/include/inttypes.h \
|
||||||
|
/usr/include/stdint.h /usr/include/bits/stdint.h \
|
||||||
|
/usr/include/sys/socket.h /usr/include/bits/socket.h \
|
||||||
|
/usr/include/sys/param.h /usr/include/sys/resource.h \
|
||||||
|
/usr/include/sys/time.h /usr/include/bits/resource.h \
|
||||||
|
/usr/include/limits.h /usr/include/bits/limits.h /usr/include/assert.h \
|
||||||
|
help.h
|
||||||
|
/usr/include/Xm/Xm.h:
|
||||||
|
/usr/include/X11/Intrinsic.h:
|
||||||
|
/usr/include/X11/Xlib.h:
|
||||||
|
/usr/include/sys/types.h:
|
||||||
|
/usr/include/features.h:
|
||||||
|
/usr/include/bits/alltypes.h:
|
||||||
|
/usr/include/endian.h:
|
||||||
|
/usr/include/sys/select.h:
|
||||||
|
/usr/include/X11/X.h:
|
||||||
|
/usr/include/X11/Xfuncproto.h:
|
||||||
|
/usr/include/X11/Xosdefs.h:
|
||||||
|
/usr/include/stddef.h:
|
||||||
|
/usr/include/X11/Xutil.h:
|
||||||
|
/usr/include/X11/keysym.h:
|
||||||
|
/usr/include/X11/keysymdef.h:
|
||||||
|
/usr/include/X11/Xresource.h:
|
||||||
|
/usr/include/string.h:
|
||||||
|
/usr/include/strings.h:
|
||||||
|
/usr/include/X11/Core.h:
|
||||||
|
/usr/include/X11/Composite.h:
|
||||||
|
/usr/include/X11/Constraint.h:
|
||||||
|
/usr/include/X11/Object.h:
|
||||||
|
/usr/include/X11/RectObj.h:
|
||||||
|
/usr/include/X11/Shell.h:
|
||||||
|
/usr/include/X11/SM/SMlib.h:
|
||||||
|
/usr/include/X11/SM/SM.h:
|
||||||
|
/usr/include/X11/ICE/ICElib.h:
|
||||||
|
/usr/include/X11/ICE/ICE.h:
|
||||||
|
/usr/include/X11/Xatom.h:
|
||||||
|
/usr/include/Xm/XmStrDefs.h:
|
||||||
|
/usr/include/X11/StringDefs.h:
|
||||||
|
/usr/include/Xm/XmStrDefs22.h:
|
||||||
|
/usr/include/Xm/XmStrDefs23.h:
|
||||||
|
/usr/include/Xm/VirtKeys.h:
|
||||||
|
/usr/include/Xm/Transfer.h:
|
||||||
|
/usr/include/Xm/DragC.h:
|
||||||
|
/usr/include/Xm/Display.h:
|
||||||
|
/usr/include/Xm/DropSMgr.h:
|
||||||
|
/usr/include/Xm/Primitive.h:
|
||||||
|
/usr/include/Xm/Manager.h:
|
||||||
|
/usr/include/Xm/Gadget.h:
|
||||||
|
/usr/include/Xm/TxtPropCv.h:
|
||||||
|
/usr/include/Xm/VendorS.h:
|
||||||
|
/usr/include/Xm/XmIm.h:
|
||||||
|
/usr/include/Xm/MessageB.h:
|
||||||
|
/usr/include/Xm/SelectioB.h:
|
||||||
|
/usr/include/Xm/Text.h:
|
||||||
|
/usr/include/stdio.h:
|
||||||
|
/usr/include/Xm/Form.h:
|
||||||
|
/usr/include/Xm/BulletinB.h:
|
||||||
|
main.h:
|
||||||
|
config.h:
|
||||||
|
/usr/include/netdb.h:
|
||||||
|
/usr/include/netinet/in.h:
|
||||||
|
/usr/include/inttypes.h:
|
||||||
|
/usr/include/stdint.h:
|
||||||
|
/usr/include/bits/stdint.h:
|
||||||
|
/usr/include/sys/socket.h:
|
||||||
|
/usr/include/bits/socket.h:
|
||||||
|
/usr/include/sys/param.h:
|
||||||
|
/usr/include/sys/resource.h:
|
||||||
|
/usr/include/sys/time.h:
|
||||||
|
/usr/include/bits/resource.h:
|
||||||
|
/usr/include/limits.h:
|
||||||
|
/usr/include/bits/limits.h:
|
||||||
|
/usr/include/assert.h:
|
||||||
|
help.h:
|
92
.deps/interpreter.Po
Normal file
92
.deps/interpreter.Po
Normal file
@ -0,0 +1,92 @@
|
|||||||
|
interpreter.o: interpreter.c /usr/include/stdio.h /usr/include/features.h \
|
||||||
|
/usr/include/bits/alltypes.h /usr/include/string.h \
|
||||||
|
/usr/include/strings.h main.h config.h /usr/include/netdb.h \
|
||||||
|
/usr/include/netinet/in.h /usr/include/inttypes.h /usr/include/stdint.h \
|
||||||
|
/usr/include/bits/stdint.h /usr/include/sys/socket.h \
|
||||||
|
/usr/include/bits/socket.h /usr/include/sys/param.h \
|
||||||
|
/usr/include/sys/resource.h /usr/include/sys/time.h \
|
||||||
|
/usr/include/sys/select.h /usr/include/bits/resource.h \
|
||||||
|
/usr/include/endian.h /usr/include/limits.h /usr/include/bits/limits.h \
|
||||||
|
/usr/include/assert.h interpreter.h network.h userlist.h \
|
||||||
|
/usr/include/Xm/Xm.h /usr/include/X11/Intrinsic.h \
|
||||||
|
/usr/include/X11/Xlib.h /usr/include/sys/types.h /usr/include/X11/X.h \
|
||||||
|
/usr/include/X11/Xfuncproto.h /usr/include/X11/Xosdefs.h \
|
||||||
|
/usr/include/stddef.h /usr/include/X11/Xutil.h /usr/include/X11/keysym.h \
|
||||||
|
/usr/include/X11/keysymdef.h /usr/include/X11/Xresource.h \
|
||||||
|
/usr/include/X11/Core.h /usr/include/X11/Composite.h \
|
||||||
|
/usr/include/X11/Constraint.h /usr/include/X11/Object.h \
|
||||||
|
/usr/include/X11/RectObj.h /usr/include/X11/Shell.h \
|
||||||
|
/usr/include/X11/SM/SMlib.h /usr/include/X11/SM/SM.h \
|
||||||
|
/usr/include/X11/ICE/ICElib.h /usr/include/X11/ICE/ICE.h \
|
||||||
|
/usr/include/X11/Xatom.h /usr/include/Xm/XmStrDefs.h \
|
||||||
|
/usr/include/X11/StringDefs.h /usr/include/Xm/XmStrDefs22.h \
|
||||||
|
/usr/include/Xm/XmStrDefs23.h /usr/include/Xm/VirtKeys.h \
|
||||||
|
/usr/include/Xm/Transfer.h /usr/include/Xm/DragC.h \
|
||||||
|
/usr/include/Xm/Display.h /usr/include/Xm/DropSMgr.h \
|
||||||
|
/usr/include/Xm/Primitive.h /usr/include/Xm/Manager.h \
|
||||||
|
/usr/include/Xm/Gadget.h /usr/include/Xm/TxtPropCv.h \
|
||||||
|
/usr/include/Xm/VendorS.h /usr/include/Xm/XmIm.h
|
||||||
|
/usr/include/stdio.h:
|
||||||
|
/usr/include/features.h:
|
||||||
|
/usr/include/bits/alltypes.h:
|
||||||
|
/usr/include/string.h:
|
||||||
|
/usr/include/strings.h:
|
||||||
|
main.h:
|
||||||
|
config.h:
|
||||||
|
/usr/include/netdb.h:
|
||||||
|
/usr/include/netinet/in.h:
|
||||||
|
/usr/include/inttypes.h:
|
||||||
|
/usr/include/stdint.h:
|
||||||
|
/usr/include/bits/stdint.h:
|
||||||
|
/usr/include/sys/socket.h:
|
||||||
|
/usr/include/bits/socket.h:
|
||||||
|
/usr/include/sys/param.h:
|
||||||
|
/usr/include/sys/resource.h:
|
||||||
|
/usr/include/sys/time.h:
|
||||||
|
/usr/include/sys/select.h:
|
||||||
|
/usr/include/bits/resource.h:
|
||||||
|
/usr/include/endian.h:
|
||||||
|
/usr/include/limits.h:
|
||||||
|
/usr/include/bits/limits.h:
|
||||||
|
/usr/include/assert.h:
|
||||||
|
interpreter.h:
|
||||||
|
network.h:
|
||||||
|
userlist.h:
|
||||||
|
/usr/include/Xm/Xm.h:
|
||||||
|
/usr/include/X11/Intrinsic.h:
|
||||||
|
/usr/include/X11/Xlib.h:
|
||||||
|
/usr/include/sys/types.h:
|
||||||
|
/usr/include/X11/X.h:
|
||||||
|
/usr/include/X11/Xfuncproto.h:
|
||||||
|
/usr/include/X11/Xosdefs.h:
|
||||||
|
/usr/include/stddef.h:
|
||||||
|
/usr/include/X11/Xutil.h:
|
||||||
|
/usr/include/X11/keysym.h:
|
||||||
|
/usr/include/X11/keysymdef.h:
|
||||||
|
/usr/include/X11/Xresource.h:
|
||||||
|
/usr/include/X11/Core.h:
|
||||||
|
/usr/include/X11/Composite.h:
|
||||||
|
/usr/include/X11/Constraint.h:
|
||||||
|
/usr/include/X11/Object.h:
|
||||||
|
/usr/include/X11/RectObj.h:
|
||||||
|
/usr/include/X11/Shell.h:
|
||||||
|
/usr/include/X11/SM/SMlib.h:
|
||||||
|
/usr/include/X11/SM/SM.h:
|
||||||
|
/usr/include/X11/ICE/ICElib.h:
|
||||||
|
/usr/include/X11/ICE/ICE.h:
|
||||||
|
/usr/include/X11/Xatom.h:
|
||||||
|
/usr/include/Xm/XmStrDefs.h:
|
||||||
|
/usr/include/X11/StringDefs.h:
|
||||||
|
/usr/include/Xm/XmStrDefs22.h:
|
||||||
|
/usr/include/Xm/XmStrDefs23.h:
|
||||||
|
/usr/include/Xm/VirtKeys.h:
|
||||||
|
/usr/include/Xm/Transfer.h:
|
||||||
|
/usr/include/Xm/DragC.h:
|
||||||
|
/usr/include/Xm/Display.h:
|
||||||
|
/usr/include/Xm/DropSMgr.h:
|
||||||
|
/usr/include/Xm/Primitive.h:
|
||||||
|
/usr/include/Xm/Manager.h:
|
||||||
|
/usr/include/Xm/Gadget.h:
|
||||||
|
/usr/include/Xm/TxtPropCv.h:
|
||||||
|
/usr/include/Xm/VendorS.h:
|
||||||
|
/usr/include/Xm/XmIm.h:
|
115
.deps/main.Po
Normal file
115
.deps/main.Po
Normal file
@ -0,0 +1,115 @@
|
|||||||
|
main.o: main.c /usr/include/stdlib.h /usr/include/features.h \
|
||||||
|
/usr/include/bits/alltypes.h /usr/include/alloca.h /usr/include/unistd.h \
|
||||||
|
/usr/include/bits/posix.h /usr/include/sys/utsname.h \
|
||||||
|
/usr/include/errno.h /usr/include/bits/errno.h main.h config.h \
|
||||||
|
/usr/include/netdb.h /usr/include/netinet/in.h /usr/include/inttypes.h \
|
||||||
|
/usr/include/stdint.h /usr/include/bits/stdint.h \
|
||||||
|
/usr/include/sys/socket.h /usr/include/bits/socket.h \
|
||||||
|
/usr/include/sys/param.h /usr/include/sys/resource.h \
|
||||||
|
/usr/include/sys/time.h /usr/include/sys/select.h \
|
||||||
|
/usr/include/bits/resource.h /usr/include/endian.h /usr/include/limits.h \
|
||||||
|
/usr/include/bits/limits.h /usr/include/assert.h /usr/include/Xm/Xm.h \
|
||||||
|
/usr/include/X11/Intrinsic.h /usr/include/X11/Xlib.h \
|
||||||
|
/usr/include/sys/types.h /usr/include/X11/X.h \
|
||||||
|
/usr/include/X11/Xfuncproto.h /usr/include/X11/Xosdefs.h \
|
||||||
|
/usr/include/stddef.h /usr/include/X11/Xutil.h /usr/include/X11/keysym.h \
|
||||||
|
/usr/include/X11/keysymdef.h /usr/include/X11/Xresource.h \
|
||||||
|
/usr/include/string.h /usr/include/strings.h /usr/include/X11/Core.h \
|
||||||
|
/usr/include/X11/Composite.h /usr/include/X11/Constraint.h \
|
||||||
|
/usr/include/X11/Object.h /usr/include/X11/RectObj.h \
|
||||||
|
/usr/include/X11/Shell.h /usr/include/X11/SM/SMlib.h \
|
||||||
|
/usr/include/X11/SM/SM.h /usr/include/X11/ICE/ICElib.h \
|
||||||
|
/usr/include/X11/ICE/ICE.h /usr/include/X11/Xatom.h \
|
||||||
|
/usr/include/Xm/XmStrDefs.h /usr/include/X11/StringDefs.h \
|
||||||
|
/usr/include/Xm/XmStrDefs22.h /usr/include/Xm/XmStrDefs23.h \
|
||||||
|
/usr/include/Xm/VirtKeys.h /usr/include/Xm/Transfer.h \
|
||||||
|
/usr/include/Xm/DragC.h /usr/include/Xm/Display.h \
|
||||||
|
/usr/include/Xm/DropSMgr.h /usr/include/Xm/Primitive.h \
|
||||||
|
/usr/include/Xm/Manager.h /usr/include/Xm/Gadget.h \
|
||||||
|
/usr/include/Xm/TxtPropCv.h /usr/include/Xm/VendorS.h \
|
||||||
|
/usr/include/Xm/XmIm.h /usr/include/Xm/MainW.h /usr/include/Xm/Form.h \
|
||||||
|
/usr/include/Xm/BulletinB.h /usr/include/Xm/Text.h /usr/include/stdio.h \
|
||||||
|
/usr/include/Xm/TextF.h /usr/include/Xm/CascadeB.h \
|
||||||
|
/usr/include/Xm/PanedW.h /usr/include/Xm/List.h interpreter.h help.h \
|
||||||
|
preferences.h network.h filesave.h
|
||||||
|
/usr/include/stdlib.h:
|
||||||
|
/usr/include/features.h:
|
||||||
|
/usr/include/bits/alltypes.h:
|
||||||
|
/usr/include/alloca.h:
|
||||||
|
/usr/include/unistd.h:
|
||||||
|
/usr/include/bits/posix.h:
|
||||||
|
/usr/include/sys/utsname.h:
|
||||||
|
/usr/include/errno.h:
|
||||||
|
/usr/include/bits/errno.h:
|
||||||
|
main.h:
|
||||||
|
config.h:
|
||||||
|
/usr/include/netdb.h:
|
||||||
|
/usr/include/netinet/in.h:
|
||||||
|
/usr/include/inttypes.h:
|
||||||
|
/usr/include/stdint.h:
|
||||||
|
/usr/include/bits/stdint.h:
|
||||||
|
/usr/include/sys/socket.h:
|
||||||
|
/usr/include/bits/socket.h:
|
||||||
|
/usr/include/sys/param.h:
|
||||||
|
/usr/include/sys/resource.h:
|
||||||
|
/usr/include/sys/time.h:
|
||||||
|
/usr/include/sys/select.h:
|
||||||
|
/usr/include/bits/resource.h:
|
||||||
|
/usr/include/endian.h:
|
||||||
|
/usr/include/limits.h:
|
||||||
|
/usr/include/bits/limits.h:
|
||||||
|
/usr/include/assert.h:
|
||||||
|
/usr/include/Xm/Xm.h:
|
||||||
|
/usr/include/X11/Intrinsic.h:
|
||||||
|
/usr/include/X11/Xlib.h:
|
||||||
|
/usr/include/sys/types.h:
|
||||||
|
/usr/include/X11/X.h:
|
||||||
|
/usr/include/X11/Xfuncproto.h:
|
||||||
|
/usr/include/X11/Xosdefs.h:
|
||||||
|
/usr/include/stddef.h:
|
||||||
|
/usr/include/X11/Xutil.h:
|
||||||
|
/usr/include/X11/keysym.h:
|
||||||
|
/usr/include/X11/keysymdef.h:
|
||||||
|
/usr/include/X11/Xresource.h:
|
||||||
|
/usr/include/string.h:
|
||||||
|
/usr/include/strings.h:
|
||||||
|
/usr/include/X11/Core.h:
|
||||||
|
/usr/include/X11/Composite.h:
|
||||||
|
/usr/include/X11/Constraint.h:
|
||||||
|
/usr/include/X11/Object.h:
|
||||||
|
/usr/include/X11/RectObj.h:
|
||||||
|
/usr/include/X11/Shell.h:
|
||||||
|
/usr/include/X11/SM/SMlib.h:
|
||||||
|
/usr/include/X11/SM/SM.h:
|
||||||
|
/usr/include/X11/ICE/ICElib.h:
|
||||||
|
/usr/include/X11/ICE/ICE.h:
|
||||||
|
/usr/include/X11/Xatom.h:
|
||||||
|
/usr/include/Xm/XmStrDefs.h:
|
||||||
|
/usr/include/X11/StringDefs.h:
|
||||||
|
/usr/include/Xm/XmStrDefs22.h:
|
||||||
|
/usr/include/Xm/XmStrDefs23.h:
|
||||||
|
/usr/include/Xm/VirtKeys.h:
|
||||||
|
/usr/include/Xm/Transfer.h:
|
||||||
|
/usr/include/Xm/DragC.h:
|
||||||
|
/usr/include/Xm/Display.h:
|
||||||
|
/usr/include/Xm/DropSMgr.h:
|
||||||
|
/usr/include/Xm/Primitive.h:
|
||||||
|
/usr/include/Xm/Manager.h:
|
||||||
|
/usr/include/Xm/Gadget.h:
|
||||||
|
/usr/include/Xm/TxtPropCv.h:
|
||||||
|
/usr/include/Xm/VendorS.h:
|
||||||
|
/usr/include/Xm/XmIm.h:
|
||||||
|
/usr/include/Xm/MainW.h:
|
||||||
|
/usr/include/Xm/Form.h:
|
||||||
|
/usr/include/Xm/BulletinB.h:
|
||||||
|
/usr/include/Xm/Text.h:
|
||||||
|
/usr/include/stdio.h:
|
||||||
|
/usr/include/Xm/TextF.h:
|
||||||
|
/usr/include/Xm/CascadeB.h:
|
||||||
|
/usr/include/Xm/PanedW.h:
|
||||||
|
/usr/include/Xm/List.h:
|
||||||
|
interpreter.h:
|
||||||
|
help.h:
|
||||||
|
preferences.h:
|
||||||
|
network.h:
|
||||||
|
filesave.h:
|
72
.deps/network.Po
Normal file
72
.deps/network.Po
Normal file
@ -0,0 +1,72 @@
|
|||||||
|
network.o: network.c /usr/include/sys/types.h /usr/include/features.h \
|
||||||
|
/usr/include/bits/alltypes.h /usr/include/endian.h \
|
||||||
|
/usr/include/sys/select.h /usr/include/sys/socket.h \
|
||||||
|
/usr/include/bits/socket.h /usr/include/netinet/in.h \
|
||||||
|
/usr/include/inttypes.h /usr/include/stdint.h /usr/include/bits/stdint.h \
|
||||||
|
/usr/include/arpa/inet.h /usr/include/netdb.h /usr/include/strings.h \
|
||||||
|
/usr/include/stdio.h /usr/include/unistd.h /usr/include/bits/posix.h \
|
||||||
|
/usr/include/errno.h /usr/include/bits/errno.h /usr/include/signal.h \
|
||||||
|
/usr/include/bits/signal.h /usr/include/fcntl.h \
|
||||||
|
/usr/include/bits/fcntl.h /usr/include/X11/Intrinsic.h \
|
||||||
|
/usr/include/X11/Xlib.h /usr/include/X11/X.h \
|
||||||
|
/usr/include/X11/Xfuncproto.h /usr/include/X11/Xosdefs.h \
|
||||||
|
/usr/include/stddef.h /usr/include/X11/Xutil.h /usr/include/X11/keysym.h \
|
||||||
|
/usr/include/X11/keysymdef.h /usr/include/X11/Xresource.h \
|
||||||
|
/usr/include/string.h /usr/include/X11/Core.h \
|
||||||
|
/usr/include/X11/Composite.h /usr/include/X11/Constraint.h \
|
||||||
|
/usr/include/X11/Object.h /usr/include/X11/RectObj.h main.h config.h \
|
||||||
|
/usr/include/sys/param.h /usr/include/sys/resource.h \
|
||||||
|
/usr/include/sys/time.h /usr/include/bits/resource.h \
|
||||||
|
/usr/include/limits.h /usr/include/bits/limits.h /usr/include/assert.h \
|
||||||
|
network.h signals.h interpreter.h
|
||||||
|
/usr/include/sys/types.h:
|
||||||
|
/usr/include/features.h:
|
||||||
|
/usr/include/bits/alltypes.h:
|
||||||
|
/usr/include/endian.h:
|
||||||
|
/usr/include/sys/select.h:
|
||||||
|
/usr/include/sys/socket.h:
|
||||||
|
/usr/include/bits/socket.h:
|
||||||
|
/usr/include/netinet/in.h:
|
||||||
|
/usr/include/inttypes.h:
|
||||||
|
/usr/include/stdint.h:
|
||||||
|
/usr/include/bits/stdint.h:
|
||||||
|
/usr/include/arpa/inet.h:
|
||||||
|
/usr/include/netdb.h:
|
||||||
|
/usr/include/strings.h:
|
||||||
|
/usr/include/stdio.h:
|
||||||
|
/usr/include/unistd.h:
|
||||||
|
/usr/include/bits/posix.h:
|
||||||
|
/usr/include/errno.h:
|
||||||
|
/usr/include/bits/errno.h:
|
||||||
|
/usr/include/signal.h:
|
||||||
|
/usr/include/bits/signal.h:
|
||||||
|
/usr/include/fcntl.h:
|
||||||
|
/usr/include/bits/fcntl.h:
|
||||||
|
/usr/include/X11/Intrinsic.h:
|
||||||
|
/usr/include/X11/Xlib.h:
|
||||||
|
/usr/include/X11/X.h:
|
||||||
|
/usr/include/X11/Xfuncproto.h:
|
||||||
|
/usr/include/X11/Xosdefs.h:
|
||||||
|
/usr/include/stddef.h:
|
||||||
|
/usr/include/X11/Xutil.h:
|
||||||
|
/usr/include/X11/keysym.h:
|
||||||
|
/usr/include/X11/keysymdef.h:
|
||||||
|
/usr/include/X11/Xresource.h:
|
||||||
|
/usr/include/string.h:
|
||||||
|
/usr/include/X11/Core.h:
|
||||||
|
/usr/include/X11/Composite.h:
|
||||||
|
/usr/include/X11/Constraint.h:
|
||||||
|
/usr/include/X11/Object.h:
|
||||||
|
/usr/include/X11/RectObj.h:
|
||||||
|
main.h:
|
||||||
|
config.h:
|
||||||
|
/usr/include/sys/param.h:
|
||||||
|
/usr/include/sys/resource.h:
|
||||||
|
/usr/include/sys/time.h:
|
||||||
|
/usr/include/bits/resource.h:
|
||||||
|
/usr/include/limits.h:
|
||||||
|
/usr/include/bits/limits.h:
|
||||||
|
/usr/include/assert.h:
|
||||||
|
network.h:
|
||||||
|
signals.h:
|
||||||
|
interpreter.h:
|
105
.deps/preferences.Po
Normal file
105
.deps/preferences.Po
Normal file
@ -0,0 +1,105 @@
|
|||||||
|
preferences.o: preferences.c /usr/include/stdio.h /usr/include/features.h \
|
||||||
|
/usr/include/bits/alltypes.h /usr/include/stdlib.h /usr/include/alloca.h \
|
||||||
|
/usr/include/string.h /usr/include/strings.h /usr/include/Xm/Xm.h \
|
||||||
|
/usr/include/X11/Intrinsic.h /usr/include/X11/Xlib.h \
|
||||||
|
/usr/include/sys/types.h /usr/include/endian.h /usr/include/sys/select.h \
|
||||||
|
/usr/include/X11/X.h /usr/include/X11/Xfuncproto.h \
|
||||||
|
/usr/include/X11/Xosdefs.h /usr/include/stddef.h \
|
||||||
|
/usr/include/X11/Xutil.h /usr/include/X11/keysym.h \
|
||||||
|
/usr/include/X11/keysymdef.h /usr/include/X11/Xresource.h \
|
||||||
|
/usr/include/X11/Core.h /usr/include/X11/Composite.h \
|
||||||
|
/usr/include/X11/Constraint.h /usr/include/X11/Object.h \
|
||||||
|
/usr/include/X11/RectObj.h /usr/include/X11/Shell.h \
|
||||||
|
/usr/include/X11/SM/SMlib.h /usr/include/X11/SM/SM.h \
|
||||||
|
/usr/include/X11/ICE/ICElib.h /usr/include/X11/ICE/ICE.h \
|
||||||
|
/usr/include/X11/Xatom.h /usr/include/Xm/XmStrDefs.h \
|
||||||
|
/usr/include/X11/StringDefs.h /usr/include/Xm/XmStrDefs22.h \
|
||||||
|
/usr/include/Xm/XmStrDefs23.h /usr/include/Xm/VirtKeys.h \
|
||||||
|
/usr/include/Xm/Transfer.h /usr/include/Xm/DragC.h \
|
||||||
|
/usr/include/Xm/Display.h /usr/include/Xm/DropSMgr.h \
|
||||||
|
/usr/include/Xm/Primitive.h /usr/include/Xm/Manager.h \
|
||||||
|
/usr/include/Xm/Gadget.h /usr/include/Xm/TxtPropCv.h \
|
||||||
|
/usr/include/Xm/VendorS.h /usr/include/Xm/XmIm.h /usr/include/Xm/Form.h \
|
||||||
|
/usr/include/Xm/BulletinB.h /usr/include/Xm/PushB.h \
|
||||||
|
/usr/include/Xm/Label.h /usr/include/Xm/TextF.h /usr/include/Xm/Text.h \
|
||||||
|
/usr/include/Xm/SelectioB.h /usr/include/Xm/MessageB.h main.h config.h \
|
||||||
|
/usr/include/netdb.h /usr/include/netinet/in.h /usr/include/inttypes.h \
|
||||||
|
/usr/include/stdint.h /usr/include/bits/stdint.h \
|
||||||
|
/usr/include/sys/socket.h /usr/include/bits/socket.h \
|
||||||
|
/usr/include/sys/param.h /usr/include/sys/resource.h \
|
||||||
|
/usr/include/sys/time.h /usr/include/bits/resource.h \
|
||||||
|
/usr/include/limits.h /usr/include/bits/limits.h /usr/include/assert.h \
|
||||||
|
preferences.h network.h
|
||||||
|
/usr/include/stdio.h:
|
||||||
|
/usr/include/features.h:
|
||||||
|
/usr/include/bits/alltypes.h:
|
||||||
|
/usr/include/stdlib.h:
|
||||||
|
/usr/include/alloca.h:
|
||||||
|
/usr/include/string.h:
|
||||||
|
/usr/include/strings.h:
|
||||||
|
/usr/include/Xm/Xm.h:
|
||||||
|
/usr/include/X11/Intrinsic.h:
|
||||||
|
/usr/include/X11/Xlib.h:
|
||||||
|
/usr/include/sys/types.h:
|
||||||
|
/usr/include/endian.h:
|
||||||
|
/usr/include/sys/select.h:
|
||||||
|
/usr/include/X11/X.h:
|
||||||
|
/usr/include/X11/Xfuncproto.h:
|
||||||
|
/usr/include/X11/Xosdefs.h:
|
||||||
|
/usr/include/stddef.h:
|
||||||
|
/usr/include/X11/Xutil.h:
|
||||||
|
/usr/include/X11/keysym.h:
|
||||||
|
/usr/include/X11/keysymdef.h:
|
||||||
|
/usr/include/X11/Xresource.h:
|
||||||
|
/usr/include/X11/Core.h:
|
||||||
|
/usr/include/X11/Composite.h:
|
||||||
|
/usr/include/X11/Constraint.h:
|
||||||
|
/usr/include/X11/Object.h:
|
||||||
|
/usr/include/X11/RectObj.h:
|
||||||
|
/usr/include/X11/Shell.h:
|
||||||
|
/usr/include/X11/SM/SMlib.h:
|
||||||
|
/usr/include/X11/SM/SM.h:
|
||||||
|
/usr/include/X11/ICE/ICElib.h:
|
||||||
|
/usr/include/X11/ICE/ICE.h:
|
||||||
|
/usr/include/X11/Xatom.h:
|
||||||
|
/usr/include/Xm/XmStrDefs.h:
|
||||||
|
/usr/include/X11/StringDefs.h:
|
||||||
|
/usr/include/Xm/XmStrDefs22.h:
|
||||||
|
/usr/include/Xm/XmStrDefs23.h:
|
||||||
|
/usr/include/Xm/VirtKeys.h:
|
||||||
|
/usr/include/Xm/Transfer.h:
|
||||||
|
/usr/include/Xm/DragC.h:
|
||||||
|
/usr/include/Xm/Display.h:
|
||||||
|
/usr/include/Xm/DropSMgr.h:
|
||||||
|
/usr/include/Xm/Primitive.h:
|
||||||
|
/usr/include/Xm/Manager.h:
|
||||||
|
/usr/include/Xm/Gadget.h:
|
||||||
|
/usr/include/Xm/TxtPropCv.h:
|
||||||
|
/usr/include/Xm/VendorS.h:
|
||||||
|
/usr/include/Xm/XmIm.h:
|
||||||
|
/usr/include/Xm/Form.h:
|
||||||
|
/usr/include/Xm/BulletinB.h:
|
||||||
|
/usr/include/Xm/PushB.h:
|
||||||
|
/usr/include/Xm/Label.h:
|
||||||
|
/usr/include/Xm/TextF.h:
|
||||||
|
/usr/include/Xm/Text.h:
|
||||||
|
/usr/include/Xm/SelectioB.h:
|
||||||
|
/usr/include/Xm/MessageB.h:
|
||||||
|
main.h:
|
||||||
|
config.h:
|
||||||
|
/usr/include/netdb.h:
|
||||||
|
/usr/include/netinet/in.h:
|
||||||
|
/usr/include/inttypes.h:
|
||||||
|
/usr/include/stdint.h:
|
||||||
|
/usr/include/bits/stdint.h:
|
||||||
|
/usr/include/sys/socket.h:
|
||||||
|
/usr/include/bits/socket.h:
|
||||||
|
/usr/include/sys/param.h:
|
||||||
|
/usr/include/sys/resource.h:
|
||||||
|
/usr/include/sys/time.h:
|
||||||
|
/usr/include/bits/resource.h:
|
||||||
|
/usr/include/limits.h:
|
||||||
|
/usr/include/bits/limits.h:
|
||||||
|
/usr/include/assert.h:
|
||||||
|
preferences.h:
|
||||||
|
network.h:
|
40
.deps/signals.Po
Normal file
40
.deps/signals.Po
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
signals.o: signals.c /usr/include/stdio.h /usr/include/features.h \
|
||||||
|
/usr/include/bits/alltypes.h /usr/include/stdlib.h /usr/include/alloca.h \
|
||||||
|
/usr/include/unistd.h /usr/include/bits/posix.h /usr/include/signal.h \
|
||||||
|
/usr/include/bits/signal.h /usr/include/sys/time.h \
|
||||||
|
/usr/include/sys/select.h main.h config.h /usr/include/netdb.h \
|
||||||
|
/usr/include/netinet/in.h /usr/include/inttypes.h /usr/include/stdint.h \
|
||||||
|
/usr/include/bits/stdint.h /usr/include/sys/socket.h \
|
||||||
|
/usr/include/bits/socket.h /usr/include/sys/param.h \
|
||||||
|
/usr/include/sys/resource.h /usr/include/bits/resource.h \
|
||||||
|
/usr/include/endian.h /usr/include/limits.h /usr/include/bits/limits.h \
|
||||||
|
/usr/include/assert.h network.h signals.h
|
||||||
|
/usr/include/stdio.h:
|
||||||
|
/usr/include/features.h:
|
||||||
|
/usr/include/bits/alltypes.h:
|
||||||
|
/usr/include/stdlib.h:
|
||||||
|
/usr/include/alloca.h:
|
||||||
|
/usr/include/unistd.h:
|
||||||
|
/usr/include/bits/posix.h:
|
||||||
|
/usr/include/signal.h:
|
||||||
|
/usr/include/bits/signal.h:
|
||||||
|
/usr/include/sys/time.h:
|
||||||
|
/usr/include/sys/select.h:
|
||||||
|
main.h:
|
||||||
|
config.h:
|
||||||
|
/usr/include/netdb.h:
|
||||||
|
/usr/include/netinet/in.h:
|
||||||
|
/usr/include/inttypes.h:
|
||||||
|
/usr/include/stdint.h:
|
||||||
|
/usr/include/bits/stdint.h:
|
||||||
|
/usr/include/sys/socket.h:
|
||||||
|
/usr/include/bits/socket.h:
|
||||||
|
/usr/include/sys/param.h:
|
||||||
|
/usr/include/sys/resource.h:
|
||||||
|
/usr/include/bits/resource.h:
|
||||||
|
/usr/include/endian.h:
|
||||||
|
/usr/include/limits.h:
|
||||||
|
/usr/include/bits/limits.h:
|
||||||
|
/usr/include/assert.h:
|
||||||
|
network.h:
|
||||||
|
signals.h:
|
88
.deps/userlist.Po
Normal file
88
.deps/userlist.Po
Normal file
@ -0,0 +1,88 @@
|
|||||||
|
userlist.o: userlist.c /usr/include/Xm/Xm.h /usr/include/X11/Intrinsic.h \
|
||||||
|
/usr/include/X11/Xlib.h /usr/include/sys/types.h /usr/include/features.h \
|
||||||
|
/usr/include/bits/alltypes.h /usr/include/endian.h \
|
||||||
|
/usr/include/sys/select.h /usr/include/X11/X.h \
|
||||||
|
/usr/include/X11/Xfuncproto.h /usr/include/X11/Xosdefs.h \
|
||||||
|
/usr/include/stddef.h /usr/include/X11/Xutil.h /usr/include/X11/keysym.h \
|
||||||
|
/usr/include/X11/keysymdef.h /usr/include/X11/Xresource.h \
|
||||||
|
/usr/include/string.h /usr/include/strings.h /usr/include/X11/Core.h \
|
||||||
|
/usr/include/X11/Composite.h /usr/include/X11/Constraint.h \
|
||||||
|
/usr/include/X11/Object.h /usr/include/X11/RectObj.h \
|
||||||
|
/usr/include/X11/Shell.h /usr/include/X11/SM/SMlib.h \
|
||||||
|
/usr/include/X11/SM/SM.h /usr/include/X11/ICE/ICElib.h \
|
||||||
|
/usr/include/X11/ICE/ICE.h /usr/include/X11/Xatom.h \
|
||||||
|
/usr/include/Xm/XmStrDefs.h /usr/include/X11/StringDefs.h \
|
||||||
|
/usr/include/Xm/XmStrDefs22.h /usr/include/Xm/XmStrDefs23.h \
|
||||||
|
/usr/include/Xm/VirtKeys.h /usr/include/Xm/Transfer.h \
|
||||||
|
/usr/include/Xm/DragC.h /usr/include/Xm/Display.h \
|
||||||
|
/usr/include/Xm/DropSMgr.h /usr/include/Xm/Primitive.h \
|
||||||
|
/usr/include/Xm/Manager.h /usr/include/Xm/Gadget.h \
|
||||||
|
/usr/include/Xm/TxtPropCv.h /usr/include/Xm/VendorS.h \
|
||||||
|
/usr/include/Xm/XmIm.h /usr/include/Xm/List.h main.h config.h \
|
||||||
|
/usr/include/netdb.h /usr/include/netinet/in.h /usr/include/inttypes.h \
|
||||||
|
/usr/include/stdint.h /usr/include/bits/stdint.h \
|
||||||
|
/usr/include/sys/socket.h /usr/include/bits/socket.h \
|
||||||
|
/usr/include/sys/param.h /usr/include/sys/resource.h \
|
||||||
|
/usr/include/sys/time.h /usr/include/bits/resource.h \
|
||||||
|
/usr/include/limits.h /usr/include/bits/limits.h /usr/include/assert.h
|
||||||
|
/usr/include/Xm/Xm.h:
|
||||||
|
/usr/include/X11/Intrinsic.h:
|
||||||
|
/usr/include/X11/Xlib.h:
|
||||||
|
/usr/include/sys/types.h:
|
||||||
|
/usr/include/features.h:
|
||||||
|
/usr/include/bits/alltypes.h:
|
||||||
|
/usr/include/endian.h:
|
||||||
|
/usr/include/sys/select.h:
|
||||||
|
/usr/include/X11/X.h:
|
||||||
|
/usr/include/X11/Xfuncproto.h:
|
||||||
|
/usr/include/X11/Xosdefs.h:
|
||||||
|
/usr/include/stddef.h:
|
||||||
|
/usr/include/X11/Xutil.h:
|
||||||
|
/usr/include/X11/keysym.h:
|
||||||
|
/usr/include/X11/keysymdef.h:
|
||||||
|
/usr/include/X11/Xresource.h:
|
||||||
|
/usr/include/string.h:
|
||||||
|
/usr/include/strings.h:
|
||||||
|
/usr/include/X11/Core.h:
|
||||||
|
/usr/include/X11/Composite.h:
|
||||||
|
/usr/include/X11/Constraint.h:
|
||||||
|
/usr/include/X11/Object.h:
|
||||||
|
/usr/include/X11/RectObj.h:
|
||||||
|
/usr/include/X11/Shell.h:
|
||||||
|
/usr/include/X11/SM/SMlib.h:
|
||||||
|
/usr/include/X11/SM/SM.h:
|
||||||
|
/usr/include/X11/ICE/ICElib.h:
|
||||||
|
/usr/include/X11/ICE/ICE.h:
|
||||||
|
/usr/include/X11/Xatom.h:
|
||||||
|
/usr/include/Xm/XmStrDefs.h:
|
||||||
|
/usr/include/X11/StringDefs.h:
|
||||||
|
/usr/include/Xm/XmStrDefs22.h:
|
||||||
|
/usr/include/Xm/XmStrDefs23.h:
|
||||||
|
/usr/include/Xm/VirtKeys.h:
|
||||||
|
/usr/include/Xm/Transfer.h:
|
||||||
|
/usr/include/Xm/DragC.h:
|
||||||
|
/usr/include/Xm/Display.h:
|
||||||
|
/usr/include/Xm/DropSMgr.h:
|
||||||
|
/usr/include/Xm/Primitive.h:
|
||||||
|
/usr/include/Xm/Manager.h:
|
||||||
|
/usr/include/Xm/Gadget.h:
|
||||||
|
/usr/include/Xm/TxtPropCv.h:
|
||||||
|
/usr/include/Xm/VendorS.h:
|
||||||
|
/usr/include/Xm/XmIm.h:
|
||||||
|
/usr/include/Xm/List.h:
|
||||||
|
main.h:
|
||||||
|
config.h:
|
||||||
|
/usr/include/netdb.h:
|
||||||
|
/usr/include/netinet/in.h:
|
||||||
|
/usr/include/inttypes.h:
|
||||||
|
/usr/include/stdint.h:
|
||||||
|
/usr/include/bits/stdint.h:
|
||||||
|
/usr/include/sys/socket.h:
|
||||||
|
/usr/include/bits/socket.h:
|
||||||
|
/usr/include/sys/param.h:
|
||||||
|
/usr/include/sys/resource.h:
|
||||||
|
/usr/include/sys/time.h:
|
||||||
|
/usr/include/bits/resource.h:
|
||||||
|
/usr/include/limits.h:
|
||||||
|
/usr/include/bits/limits.h:
|
||||||
|
/usr/include/assert.h:
|
3
AUTHORS
Normal file
3
AUTHORS
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
Riccardo Mottola
|
||||||
|
(aka. grey gandalf or multix)
|
||||||
|
mail: rmottola@users.sf.net
|
33
COPYING
Normal file
33
COPYING
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
Copyright (c) 2004, Riccardo Mottola
|
||||||
|
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are
|
||||||
|
met:
|
||||||
|
|
||||||
|
Redistributions of source code must retain the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer.
|
||||||
|
Redistributions in binary form must reproduce the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer in the
|
||||||
|
documentation and/or other materials provided with the
|
||||||
|
distribution.
|
||||||
|
Neither the name of "Riccardo Mottola" nor the names of its
|
||||||
|
contributors may be used to endorse or promote products derived
|
||||||
|
from this software without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS
|
||||||
|
AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||||
|
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||||
|
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
|
||||||
|
SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
||||||
|
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||||
|
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||||
|
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||||
|
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||||
|
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||||
|
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
|
||||||
|
TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
||||||
|
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||||
|
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
273
ChangeLog
Normal file
273
ChangeLog
Normal file
@ -0,0 +1,273 @@
|
|||||||
|
2005-04-01 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* network.c : removed useless statement
|
||||||
|
|
||||||
|
2005-03-17 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* interpreter.c interpreter.h
|
||||||
|
recognition of MOTD messages
|
||||||
|
|
||||||
|
2005-03-17 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* interpreter.c
|
||||||
|
stripping of first character in nickname
|
||||||
|
|
||||||
|
2005-03-17 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* preferences.c preferences.h main.h
|
||||||
|
rationalized configure file path generation into a function and made filename configurable. After suggestion by Sandro Bonazzola <sandrobonazzola@users.sf.net>
|
||||||
|
|
||||||
|
2005-03-08 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* preferences.c : removed useless declarations
|
||||||
|
|
||||||
|
2005-03-08 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* help.c interpreter.c interpreter.h main.c network.c network.h
|
||||||
|
added support for whois request and reply display
|
||||||
|
|
||||||
|
2005-03-07 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* preferences.c : implemented preferences file saving
|
||||||
|
|
||||||
|
2005-03-06 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* main.c: check for XmFONTLIST_DEFAULT_TAG
|
||||||
|
|
||||||
|
2005-03-06 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* main.c : get user selection from list
|
||||||
|
|
||||||
|
2005-03-05 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
"initial work on preferences and user list"
|
||||||
|
- solved a bug that appeared with non-DEBUG in network.c
|
||||||
|
|
||||||
|
2005-03-01 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* interpeter.c, main.c, main.c userlist.c userlist.h
|
||||||
|
nick changing support in userlist, minor fixes
|
||||||
|
* main.h debug disabled
|
||||||
|
|
||||||
|
2005-03-01 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* userlist.h userlist.c: added
|
||||||
|
* automake files regenerated
|
||||||
|
* many additions to support the userlist
|
||||||
|
* copyright and license fixes
|
||||||
|
|
||||||
|
2005-02-27 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* filesave.c : set title, removed ueseless debug prints
|
||||||
|
|
||||||
|
2005-02-27 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* configure.ac : check for Sgm extension and regenerated files
|
||||||
|
|
||||||
|
2005-02-27 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* help.c : updated copyright
|
||||||
|
* main.h : fixed str in macro
|
||||||
|
|
||||||
|
2005-02-27 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* preferences.c: added help dialog
|
||||||
|
|
||||||
|
2005-02-26 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* preferences.c, main.c: removed warings and useless variables
|
||||||
|
|
||||||
|
2005-02-26 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* preferences.c : config file reading
|
||||||
|
* main.c: removed stray variable
|
||||||
|
* help.c: added op/deop description
|
||||||
|
|
||||||
|
2005-01-24 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* configure.ac : version bumped and files regenerated
|
||||||
|
|
||||||
|
2005-01-23 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* interpreter.c : implemented op and deop commands
|
||||||
|
|
||||||
|
2005-01-22 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* main.c network.c : new event handling now with XtAppAddInput
|
||||||
|
|
||||||
|
2005-01-18 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* main.c main.h network.c:
|
||||||
|
unix user name extraction and use
|
||||||
|
|
||||||
|
2005-01-18 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* interpreter.c, interperer.h : handle part notification
|
||||||
|
|
||||||
|
2005-01-18 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* configure : removed extra X libraries in path and regenerated
|
||||||
|
|
||||||
|
2005-01-18 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* interpreter.c : fixed QUIT message display
|
||||||
|
|
||||||
|
2005-01-14 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* interpreter.c: fixed bugs that would appear in MipsPro
|
||||||
|
|
||||||
|
2005-01-12 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* network.c: unified disconnect cleanup code in one function
|
||||||
|
|
||||||
|
2005-01-07 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* configure files: added libPW check and regenerated
|
||||||
|
|
||||||
|
2005-01-07 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* network.c, main.c : more grafecul handling of link closure
|
||||||
|
|
||||||
|
2005-01-07 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* main.h : improved MAXHOSTNAMELEN stuff
|
||||||
|
|
||||||
|
2005-01-04 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* interpreter.c: put command error in console
|
||||||
|
|
||||||
|
2005-01-04 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* configure files: regeneration after version bump
|
||||||
|
|
||||||
|
2005-01-04 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* interpreter.c, interpreter.h
|
||||||
|
added intepretation of user op and deop commands
|
||||||
|
|
||||||
|
2005-01-04 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* interpreter.c : fixed segfault (missing token to doMode!)
|
||||||
|
|
||||||
|
2005-01-03 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* main.c main.h network.c signals.c signals.h
|
||||||
|
removed alarm signal and use select() fot socket and X event handling
|
||||||
|
|
||||||
|
2004-12-13 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* network.c : doNick() now checks for pointer address
|
||||||
|
|
||||||
|
2004-12-12 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* interpreter.c interpreter.h : added recognition of more error messages
|
||||||
|
|
||||||
|
2004-12-12 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* network.c : added some comments
|
||||||
|
|
||||||
|
2004-12-12 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* signals.c signals.h:
|
||||||
|
cleaned up code to use configure type and ignore alarm signal during handler execution
|
||||||
|
|
||||||
|
2004-12-12 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* help.c network.c preferences.c
|
||||||
|
some code cleanup, some debug cleanup.
|
||||||
|
|
||||||
|
2004-12-09 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* interpreter.c, network.c: /mode command implemented
|
||||||
|
|
||||||
|
2004-12-08 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* help.c : fixed missing new line
|
||||||
|
|
||||||
|
2004-12-05 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* main.h main.c interpreter.c help.c
|
||||||
|
Get the system information and create a real system info string.
|
||||||
|
|
||||||
|
2004-12-05 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* network.c, main.h main.c
|
||||||
|
Get the host name and send it as info
|
||||||
|
|
||||||
|
2004-11-29 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* interpreter.c : interpret "/ns" shortcut for nickserv
|
||||||
|
* help.c : added help entry.
|
||||||
|
|
||||||
|
2004-11-14 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* configure.ac bumped version
|
||||||
|
* configure : regenerated
|
||||||
|
|
||||||
|
2004-11-12 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* preferences.c : fixed cosmetic positioning
|
||||||
|
* network.c : fixed warning
|
||||||
|
|
||||||
|
2004-11-11 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* interpreter.c main.c main.h network.c:
|
||||||
|
limit lines sent to server to 512 bytes (RFC 1459)
|
||||||
|
|
||||||
|
2004-11-09 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* filesave.c filesave.h : file save implemented
|
||||||
|
|
||||||
|
2004-11-05 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* help.c help.h interpreter.c main.c main.h network.c network.h preferences.c
|
||||||
|
Completed help box, added better preferences at startup added port at connection, made connection at startup work.
|
||||||
|
|
||||||
|
2004-10-30 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* network.c : added asserts and removed a potential buffer overrun of 1 byte
|
||||||
|
|
||||||
|
2004-10-28 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* preferences.c : read username and nickname from dialog
|
||||||
|
|
||||||
|
2004-10-27 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* help.h
|
||||||
|
interpreter.c
|
||||||
|
main.c
|
||||||
|
network.c
|
||||||
|
network.h
|
||||||
|
signals.c
|
||||||
|
fixed warnings, missing includes, missing declarations
|
||||||
|
|
||||||
|
2004-10-27 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* preferences.c, network.c : worked on the user/nick name setting
|
||||||
|
|
||||||
|
2004-10-27 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* main.c preferences.c preferences.h : realized a better dialog system
|
||||||
|
* help.c : used a mroe meaningful name
|
||||||
|
|
||||||
|
2004-10-23 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* preferences.h preferences.c : added
|
||||||
|
* automake.am : updated, regenerated remaining files
|
||||||
|
* main.c : added initial preferences dialog
|
||||||
|
|
||||||
|
2004-10-22 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* main.h, helpc: different check for XmFONTLIST_DEFAULT_TAG
|
||||||
|
|
||||||
|
2004-10-19 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* interpreter.c : fixed bug in ctcp version send and receive
|
||||||
|
|
||||||
|
2004-10-18 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* interpreter.c, interpreter.h, network.c, network.h:
|
||||||
|
added support for requesting CTCP version
|
||||||
|
* interpreter.c interpreter.h : better notice support
|
||||||
|
|
||||||
|
2004-10-17 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* main.h : guarded XmFONTLIST_DEFAULT_TAG
|
||||||
|
* help.c : corrected license
|
||||||
|
* configure.c : bumped version to 0.1, regenerated other files
|
||||||
|
|
||||||
|
2004-10-14 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* configure.ac, main.h : added detection of different functions from Motif 1 and 2
|
||||||
|
* configure, configure.ac : regenerated
|
||||||
|
|
||||||
|
2004-09-30 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* interpreter.c interpreter.h : added quit notification handling
|
||||||
|
* interpreter.c, main.c, network.c : code cleanup
|
||||||
|
|
||||||
|
2004-09-29 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* config.sub : added
|
||||||
|
* config.guess : added
|
||||||
|
* main.h interpreter.c : added queries
|
||||||
|
|
||||||
|
2004-09-28 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* help.c help.h : copyright / header / license added
|
||||||
|
* help.c : fixed multi-line about string.
|
||||||
|
* configure.ac : added genreation of NEBULA_ARCHOS
|
||||||
|
* main.h : set to use config.h defines and the platform version/arch
|
||||||
|
* main.c / help.c : fixed about box aesthetics
|
||||||
|
|
||||||
|
2004-09-27 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* main.c : added about dialog
|
||||||
|
* help.c help.h : added for about dialog box
|
||||||
|
* Makefile.in : new files added, other files regenreated.
|
||||||
|
* interpreter.c interpreter.h : added handling of "JOIN" notifications
|
||||||
|
|
||||||
|
|
||||||
|
2004-09-26 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* main.c : better callback prototypes and made a hack for the help menu
|
||||||
|
|
||||||
|
2004-09-26 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* interpreter.c interpreter.h : added support for welcome and channel join replies
|
||||||
|
|
||||||
|
2004-09-25 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
* main.c : Fixed initial widget focus (set to input line)
|
||||||
|
* Makefile : deleted.
|
||||||
|
* interpreter.c : added support for ACTIONs
|
||||||
|
* network.c network.h interpreter.c added support for /me
|
||||||
|
* main.h : bumped version
|
||||||
|
|
||||||
|
2004-09-24 Riccardo Mottola <rmottola@users.sf.net>
|
||||||
|
|
||||||
|
* Added following files:
|
||||||
|
Changelog
|
||||||
|
AUTHORS
|
||||||
|
INSTALL
|
||||||
|
Makefile.am
|
||||||
|
Makefile.in
|
||||||
|
NEWS
|
||||||
|
aclocal.m4
|
||||||
|
config.h.in
|
||||||
|
configure
|
||||||
|
configure.ac
|
||||||
|
depcomp
|
||||||
|
install-sh
|
229
INSTALL
Normal file
229
INSTALL
Normal file
@ -0,0 +1,229 @@
|
|||||||
|
Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002 Free Software
|
||||||
|
Foundation, Inc.
|
||||||
|
|
||||||
|
This file is free documentation; the Free Software Foundation gives
|
||||||
|
unlimited permission to copy, distribute and modify it.
|
||||||
|
|
||||||
|
Basic Installation
|
||||||
|
==================
|
||||||
|
|
||||||
|
These are generic installation instructions.
|
||||||
|
|
||||||
|
The `configure' shell script attempts to guess correct values for
|
||||||
|
various system-dependent variables used during compilation. It uses
|
||||||
|
those values to create a `Makefile' in each directory of the package.
|
||||||
|
It may also create one or more `.h' files containing system-dependent
|
||||||
|
definitions. Finally, it creates a shell script `config.status' that
|
||||||
|
you can run in the future to recreate the current configuration, and a
|
||||||
|
file `config.log' containing compiler output (useful mainly for
|
||||||
|
debugging `configure').
|
||||||
|
|
||||||
|
It can also use an optional file (typically called `config.cache'
|
||||||
|
and enabled with `--cache-file=config.cache' or simply `-C') that saves
|
||||||
|
the results of its tests to speed up reconfiguring. (Caching is
|
||||||
|
disabled by default to prevent problems with accidental use of stale
|
||||||
|
cache files.)
|
||||||
|
|
||||||
|
If you need to do unusual things to compile the package, please try
|
||||||
|
to figure out how `configure' could check whether to do them, and mail
|
||||||
|
diffs or instructions to the address given in the `README' so they can
|
||||||
|
be considered for the next release. If you are using the cache, and at
|
||||||
|
some point `config.cache' contains results you don't want to keep, you
|
||||||
|
may remove or edit it.
|
||||||
|
|
||||||
|
The file `configure.ac' (or `configure.in') is used to create
|
||||||
|
`configure' by a program called `autoconf'. You only need
|
||||||
|
`configure.ac' if you want to change it or regenerate `configure' using
|
||||||
|
a newer version of `autoconf'.
|
||||||
|
|
||||||
|
The simplest way to compile this package is:
|
||||||
|
|
||||||
|
1. `cd' to the directory containing the package's source code and type
|
||||||
|
`./configure' to configure the package for your system. If you're
|
||||||
|
using `csh' on an old version of System V, you might need to type
|
||||||
|
`sh ./configure' instead to prevent `csh' from trying to execute
|
||||||
|
`configure' itself.
|
||||||
|
|
||||||
|
Running `configure' takes awhile. While running, it prints some
|
||||||
|
messages telling which features it is checking for.
|
||||||
|
|
||||||
|
2. Type `make' to compile the package.
|
||||||
|
|
||||||
|
3. Optionally, type `make check' to run any self-tests that come with
|
||||||
|
the package.
|
||||||
|
|
||||||
|
4. Type `make install' to install the programs and any data files and
|
||||||
|
documentation.
|
||||||
|
|
||||||
|
5. You can remove the program binaries and object files from the
|
||||||
|
source code directory by typing `make clean'. To also remove the
|
||||||
|
files that `configure' created (so you can compile the package for
|
||||||
|
a different kind of computer), type `make distclean'. There is
|
||||||
|
also a `make maintainer-clean' target, but that is intended mainly
|
||||||
|
for the package's developers. If you use it, you may have to get
|
||||||
|
all sorts of other programs in order to regenerate files that came
|
||||||
|
with the distribution.
|
||||||
|
|
||||||
|
Compilers and Options
|
||||||
|
=====================
|
||||||
|
|
||||||
|
Some systems require unusual options for compilation or linking that
|
||||||
|
the `configure' script does not know about. Run `./configure --help'
|
||||||
|
for details on some of the pertinent environment variables.
|
||||||
|
|
||||||
|
You can give `configure' initial values for configuration parameters
|
||||||
|
by setting variables in the command line or in the environment. Here
|
||||||
|
is an example:
|
||||||
|
|
||||||
|
./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
|
||||||
|
|
||||||
|
*Note Defining Variables::, for more details.
|
||||||
|
|
||||||
|
Compiling For Multiple Architectures
|
||||||
|
====================================
|
||||||
|
|
||||||
|
You can compile the package for more than one kind of computer at the
|
||||||
|
same time, by placing the object files for each architecture in their
|
||||||
|
own directory. To do this, you must use a version of `make' that
|
||||||
|
supports the `VPATH' variable, such as GNU `make'. `cd' to the
|
||||||
|
directory where you want the object files and executables to go and run
|
||||||
|
the `configure' script. `configure' automatically checks for the
|
||||||
|
source code in the directory that `configure' is in and in `..'.
|
||||||
|
|
||||||
|
If you have to use a `make' that does not support the `VPATH'
|
||||||
|
variable, you have to compile the package for one architecture at a
|
||||||
|
time in the source code directory. After you have installed the
|
||||||
|
package for one architecture, use `make distclean' before reconfiguring
|
||||||
|
for another architecture.
|
||||||
|
|
||||||
|
Installation Names
|
||||||
|
==================
|
||||||
|
|
||||||
|
By default, `make install' will install the package's files in
|
||||||
|
`/usr/local/bin', `/usr/local/man', etc. You can specify an
|
||||||
|
installation prefix other than `/usr/local' by giving `configure' the
|
||||||
|
option `--prefix=PATH'.
|
||||||
|
|
||||||
|
You can specify separate installation prefixes for
|
||||||
|
architecture-specific files and architecture-independent files. If you
|
||||||
|
give `configure' the option `--exec-prefix=PATH', the package will use
|
||||||
|
PATH as the prefix for installing programs and libraries.
|
||||||
|
Documentation and other data files will still use the regular prefix.
|
||||||
|
|
||||||
|
In addition, if you use an unusual directory layout you can give
|
||||||
|
options like `--bindir=PATH' to specify different values for particular
|
||||||
|
kinds of files. Run `configure --help' for a list of the directories
|
||||||
|
you can set and what kinds of files go in them.
|
||||||
|
|
||||||
|
If the package supports it, you can cause programs to be installed
|
||||||
|
with an extra prefix or suffix on their names by giving `configure' the
|
||||||
|
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
|
||||||
|
|
||||||
|
Optional Features
|
||||||
|
=================
|
||||||
|
|
||||||
|
Some packages pay attention to `--enable-FEATURE' options to
|
||||||
|
`configure', where FEATURE indicates an optional part of the package.
|
||||||
|
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
|
||||||
|
is something like `gnu-as' or `x' (for the X Window System). The
|
||||||
|
`README' should mention any `--enable-' and `--with-' options that the
|
||||||
|
package recognizes.
|
||||||
|
|
||||||
|
For packages that use the X Window System, `configure' can usually
|
||||||
|
find the X include and library files automatically, but if it doesn't,
|
||||||
|
you can use the `configure' options `--x-includes=DIR' and
|
||||||
|
`--x-libraries=DIR' to specify their locations.
|
||||||
|
|
||||||
|
Specifying the System Type
|
||||||
|
==========================
|
||||||
|
|
||||||
|
There may be some features `configure' cannot figure out
|
||||||
|
automatically, but needs to determine by the type of machine the package
|
||||||
|
will run on. Usually, assuming the package is built to be run on the
|
||||||
|
_same_ architectures, `configure' can figure that out, but if it prints
|
||||||
|
a message saying it cannot guess the machine type, give it the
|
||||||
|
`--build=TYPE' option. TYPE can either be a short name for the system
|
||||||
|
type, such as `sun4', or a canonical name which has the form:
|
||||||
|
|
||||||
|
CPU-COMPANY-SYSTEM
|
||||||
|
|
||||||
|
where SYSTEM can have one of these forms:
|
||||||
|
|
||||||
|
OS KERNEL-OS
|
||||||
|
|
||||||
|
See the file `config.sub' for the possible values of each field. If
|
||||||
|
`config.sub' isn't included in this package, then this package doesn't
|
||||||
|
need to know the machine type.
|
||||||
|
|
||||||
|
If you are _building_ compiler tools for cross-compiling, you should
|
||||||
|
use the `--target=TYPE' option to select the type of system they will
|
||||||
|
produce code for.
|
||||||
|
|
||||||
|
If you want to _use_ a cross compiler, that generates code for a
|
||||||
|
platform different from the build platform, you should specify the
|
||||||
|
"host" platform (i.e., that on which the generated programs will
|
||||||
|
eventually be run) with `--host=TYPE'.
|
||||||
|
|
||||||
|
Sharing Defaults
|
||||||
|
================
|
||||||
|
|
||||||
|
If you want to set default values for `configure' scripts to share,
|
||||||
|
you can create a site shell script called `config.site' that gives
|
||||||
|
default values for variables like `CC', `cache_file', and `prefix'.
|
||||||
|
`configure' looks for `PREFIX/share/config.site' if it exists, then
|
||||||
|
`PREFIX/etc/config.site' if it exists. Or, you can set the
|
||||||
|
`CONFIG_SITE' environment variable to the location of the site script.
|
||||||
|
A warning: not all `configure' scripts look for a site script.
|
||||||
|
|
||||||
|
Defining Variables
|
||||||
|
==================
|
||||||
|
|
||||||
|
Variables not defined in a site shell script can be set in the
|
||||||
|
environment passed to `configure'. However, some packages may run
|
||||||
|
configure again during the build, and the customized values of these
|
||||||
|
variables may be lost. In order to avoid this problem, you should set
|
||||||
|
them in the `configure' command line, using `VAR=value'. For example:
|
||||||
|
|
||||||
|
./configure CC=/usr/local2/bin/gcc
|
||||||
|
|
||||||
|
will cause the specified gcc to be used as the C compiler (unless it is
|
||||||
|
overridden in the site shell script).
|
||||||
|
|
||||||
|
`configure' Invocation
|
||||||
|
======================
|
||||||
|
|
||||||
|
`configure' recognizes the following options to control how it
|
||||||
|
operates.
|
||||||
|
|
||||||
|
`--help'
|
||||||
|
`-h'
|
||||||
|
Print a summary of the options to `configure', and exit.
|
||||||
|
|
||||||
|
`--version'
|
||||||
|
`-V'
|
||||||
|
Print the version of Autoconf used to generate the `configure'
|
||||||
|
script, and exit.
|
||||||
|
|
||||||
|
`--cache-file=FILE'
|
||||||
|
Enable the cache: use and save the results of the tests in FILE,
|
||||||
|
traditionally `config.cache'. FILE defaults to `/dev/null' to
|
||||||
|
disable caching.
|
||||||
|
|
||||||
|
`--config-cache'
|
||||||
|
`-C'
|
||||||
|
Alias for `--cache-file=config.cache'.
|
||||||
|
|
||||||
|
`--quiet'
|
||||||
|
`--silent'
|
||||||
|
`-q'
|
||||||
|
Do not print messages saying which checks are being made. To
|
||||||
|
suppress all normal output, redirect it to `/dev/null' (any error
|
||||||
|
messages will still be shown).
|
||||||
|
|
||||||
|
`--srcdir=DIR'
|
||||||
|
Look for the package's source code in directory DIR. Usually
|
||||||
|
`configure' can determine that directory automatically.
|
||||||
|
|
||||||
|
`configure' also accepts some other, not widely useful, options. Run
|
||||||
|
`configure --help' for more details.
|
||||||
|
|
33
LICENSE
Normal file
33
LICENSE
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
Copyright (c) 2004, Riccardo Mottola
|
||||||
|
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are
|
||||||
|
met:
|
||||||
|
|
||||||
|
Redistributions of source code must retain the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer.
|
||||||
|
Redistributions in binary form must reproduce the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer in the
|
||||||
|
documentation and/or other materials provided with the
|
||||||
|
distribution.
|
||||||
|
Neither the name of "Riccardo Mottola" nor the names of its
|
||||||
|
contributors may be used to endorse or promote products derived
|
||||||
|
from this software without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS
|
||||||
|
AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||||
|
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||||
|
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
|
||||||
|
SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
||||||
|
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||||
|
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||||
|
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||||
|
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||||
|
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||||
|
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
|
||||||
|
TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
||||||
|
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||||
|
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
560
Makefile
Normal file
560
Makefile
Normal file
@ -0,0 +1,560 @@
|
|||||||
|
# Makefile.in generated by automake 1.8.5 from Makefile.am.
|
||||||
|
# Makefile. Generated from Makefile.in by configure.
|
||||||
|
|
||||||
|
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||||
|
# 2003, 2004 Free Software Foundation, Inc.
|
||||||
|
# This Makefile.in is free software; the Free Software Foundation
|
||||||
|
# gives unlimited permission to copy and/or distribute it,
|
||||||
|
# with or without modifications, as long as this notice is preserved.
|
||||||
|
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||||
|
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||||
|
# PARTICULAR PURPOSE.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
SOURCES = $(nebula_SOURCES)
|
||||||
|
|
||||||
|
srcdir = .
|
||||||
|
top_srcdir = .
|
||||||
|
|
||||||
|
pkgdatadir = $(datadir)/nebula
|
||||||
|
pkglibdir = $(libdir)/nebula
|
||||||
|
pkgincludedir = $(includedir)/nebula
|
||||||
|
top_builddir = .
|
||||||
|
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||||
|
INSTALL = /bin//install -c
|
||||||
|
install_sh_DATA = $(install_sh) -c -m 644
|
||||||
|
install_sh_PROGRAM = $(install_sh) -c
|
||||||
|
install_sh_SCRIPT = $(install_sh) -c
|
||||||
|
INSTALL_HEADER = $(INSTALL_DATA)
|
||||||
|
transform = $(program_transform_name)
|
||||||
|
NORMAL_INSTALL = :
|
||||||
|
PRE_INSTALL = :
|
||||||
|
POST_INSTALL = :
|
||||||
|
NORMAL_UNINSTALL = :
|
||||||
|
PRE_UNINSTALL = :
|
||||||
|
POST_UNINSTALL = :
|
||||||
|
bin_PROGRAMS = nebula$(EXEEXT)
|
||||||
|
subdir = .
|
||||||
|
DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
|
||||||
|
$(srcdir)/Makefile.in $(srcdir)/config.h.in \
|
||||||
|
$(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \
|
||||||
|
config.guess config.sub depcomp install-sh missing
|
||||||
|
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||||
|
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
|
||||||
|
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||||
|
$(ACLOCAL_M4)
|
||||||
|
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
|
||||||
|
configure.lineno configure.status.lineno
|
||||||
|
mkinstalldirs = $(mkdir_p)
|
||||||
|
CONFIG_HEADER = config.h
|
||||||
|
CONFIG_CLEAN_FILES =
|
||||||
|
am__installdirs = "$(DESTDIR)$(bindir)"
|
||||||
|
binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
|
||||||
|
PROGRAMS = $(bin_PROGRAMS)
|
||||||
|
am_nebula_OBJECTS = main.$(OBJEXT) interpreter.$(OBJEXT) \
|
||||||
|
network.$(OBJEXT) preferences.$(OBJEXT) signals.$(OBJEXT) \
|
||||||
|
help.$(OBJEXT) filesave.$(OBJEXT) userlist.$(OBJEXT)
|
||||||
|
nebula_OBJECTS = $(am_nebula_OBJECTS)
|
||||||
|
nebula_LDADD = $(LDADD)
|
||||||
|
DEFAULT_INCLUDES = -I. -I$(srcdir) -I.
|
||||||
|
depcomp = $(SHELL) $(top_srcdir)/depcomp
|
||||||
|
am__depfiles_maybe = depfiles
|
||||||
|
DEP_FILES = ./$(DEPDIR)/filesave.Po ./$(DEPDIR)/help.Po \
|
||||||
|
./$(DEPDIR)/interpreter.Po ./$(DEPDIR)/main.Po \
|
||||||
|
./$(DEPDIR)/network.Po ./$(DEPDIR)/preferences.Po \
|
||||||
|
./$(DEPDIR)/signals.Po ./$(DEPDIR)/userlist.Po
|
||||||
|
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
|
||||||
|
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||||
|
CCLD = $(CC)
|
||||||
|
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
|
||||||
|
SOURCES = $(nebula_SOURCES)
|
||||||
|
DIST_SOURCES = $(nebula_SOURCES)
|
||||||
|
ETAGS = etags
|
||||||
|
CTAGS = ctags
|
||||||
|
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
|
distdir = $(PACKAGE)-$(VERSION)
|
||||||
|
top_distdir = $(distdir)
|
||||||
|
am__remove_distdir = \
|
||||||
|
{ test ! -d $(distdir) \
|
||||||
|
|| { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
|
||||||
|
&& rm -fr $(distdir); }; }
|
||||||
|
DIST_ARCHIVES = $(distdir).tar.gz
|
||||||
|
GZIP_ENV = --best
|
||||||
|
distuninstallcheck_listfiles = find . -type f -print
|
||||||
|
distcleancheck_listfiles = find . -type f -print
|
||||||
|
ACLOCAL = ${SHELL} /usr/src/midfavila/nebula-irc/missing --run aclocal-1.8
|
||||||
|
AMDEP_FALSE = #
|
||||||
|
AMDEP_TRUE =
|
||||||
|
AMTAR = ${SHELL} /usr/src/midfavila/nebula-irc/missing --run tar
|
||||||
|
AUTOCONF = ${SHELL} /usr/src/midfavila/nebula-irc/missing --run autoconf
|
||||||
|
AUTOHEADER = ${SHELL} /usr/src/midfavila/nebula-irc/missing --run autoheader
|
||||||
|
AUTOMAKE = ${SHELL} /usr/src/midfavila/nebula-irc/missing --run automake-1.8
|
||||||
|
AWK = awk
|
||||||
|
CC = gcc
|
||||||
|
CCDEPMODE = depmode=gcc3
|
||||||
|
CFLAGS = -pipe -D_GLIBCXX_ASSERTIONS -D_FORTIFY_SOURCE=2 -O2 -march=haswell -fno-asynchronous-unwind-tables -momit-leaf-frame-pointer -ftree-loop-vectorize -fstack-protector-strong --param ssp-buffer-size=4 -fstack-clash-protection -fPIE -fPIC -Wl,--hash-style=gnu -fno-plt -fomit-frame-pointer -fmodulo-sched -fno-expensive-optimizations -fira-loop-pressure -fno-sched-spec-load -fconserve-stack -fisolate-erroneous-paths-attribute -fdelete-null-pointer-checks -fisolate-erroneous-paths-dereference -Wall
|
||||||
|
CPP = gcc -E
|
||||||
|
CPPFLAGS =
|
||||||
|
CYGPATH_W = echo
|
||||||
|
DEFS = -DHAVE_CONFIG_H
|
||||||
|
DEPDIR = .deps
|
||||||
|
ECHO_C = \c
|
||||||
|
ECHO_N =
|
||||||
|
ECHO_T =
|
||||||
|
EGREP = grep -E
|
||||||
|
EXEEXT =
|
||||||
|
INSTALL_DATA = ${INSTALL} -m 644
|
||||||
|
INSTALL_PROGRAM = ${INSTALL}
|
||||||
|
INSTALL_SCRIPT = ${INSTALL}
|
||||||
|
INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s
|
||||||
|
ISYSTEM = -I
|
||||||
|
LDFLAGS = -Wl,-O2,-sort-common,-as-needed,-z,relro,-z,now -L/usr/lib64
|
||||||
|
LIBOBJS =
|
||||||
|
LIBS = -lXm -lXt -lX11
|
||||||
|
LTLIBOBJS =
|
||||||
|
MAKEINFO = ${SHELL} /usr/src/midfavila/nebula-irc/missing --run makeinfo
|
||||||
|
NEBULA_ARCHOS = (linux-gnu running on x86_64)
|
||||||
|
OBJEXT = o
|
||||||
|
PACKAGE = nebula
|
||||||
|
PACKAGE_BUGREPORT = rmottola@users.sourceforge.net
|
||||||
|
PACKAGE_NAME = nebula
|
||||||
|
PACKAGE_STRING = nebula 0.5
|
||||||
|
PACKAGE_TARNAME = nebula
|
||||||
|
PACKAGE_VERSION = 0.5
|
||||||
|
PATH_SEPARATOR = :
|
||||||
|
SET_MAKE =
|
||||||
|
SGM_LIBS =
|
||||||
|
SHELL = /bin/sh
|
||||||
|
STRIP =
|
||||||
|
VERSION = 0.5
|
||||||
|
X11_LIBS = -lX11
|
||||||
|
XM_LIBS = -lXm
|
||||||
|
XT_LIBS = -lXt
|
||||||
|
X_CFLAGS =
|
||||||
|
X_EXTRA_LIBS =
|
||||||
|
X_LIBS = -L/usr/lib64
|
||||||
|
X_PRE_LIBS = -lSM -lICE
|
||||||
|
ac_ct_CC = gcc
|
||||||
|
ac_ct_STRIP =
|
||||||
|
am__fastdepCC_FALSE = #
|
||||||
|
am__fastdepCC_TRUE =
|
||||||
|
am__include = include
|
||||||
|
am__leading_dot = .
|
||||||
|
am__quote =
|
||||||
|
bindir = ${exec_prefix}/bin
|
||||||
|
build = x86_64-unknown-linux-gnu
|
||||||
|
build_alias =
|
||||||
|
build_cpu = x86_64
|
||||||
|
build_os = linux-gnu
|
||||||
|
build_vendor = unknown
|
||||||
|
datadir = ${prefix}/share
|
||||||
|
exec_prefix = ${prefix}
|
||||||
|
host_alias =
|
||||||
|
includedir = ${prefix}/include
|
||||||
|
infodir = ${prefix}/info
|
||||||
|
install_sh = /usr/src/midfavila/nebula-irc/install-sh
|
||||||
|
libdir = ${exec_prefix}/lib
|
||||||
|
libexecdir = ${exec_prefix}/libexec
|
||||||
|
localstatedir = ${prefix}/var
|
||||||
|
mandir = ${prefix}/man
|
||||||
|
mkdir_p = $(install_sh) -d
|
||||||
|
oldincludedir = /usr/include
|
||||||
|
prefix = /usr/local
|
||||||
|
program_transform_name = s,x,x,
|
||||||
|
sbindir = ${exec_prefix}/sbin
|
||||||
|
sharedstatedir = ${prefix}/com
|
||||||
|
sysconfdir = ${prefix}/etc
|
||||||
|
target_alias =
|
||||||
|
nebula_SOURCES = main.c main.h interpreter.c interpreter.h network.c network.h preferences.c preferences.h signals.c signals.h help.c help.h filesave.c filesave.h userlist.c userlist.h
|
||||||
|
EXTRA_DIST = LICENSE
|
||||||
|
all: config.h
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) all-am
|
||||||
|
|
||||||
|
.SUFFIXES:
|
||||||
|
.SUFFIXES: .c .o .obj
|
||||||
|
am--refresh:
|
||||||
|
@:
|
||||||
|
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
||||||
|
@for dep in $?; do \
|
||||||
|
case '$(am__configure_deps)' in \
|
||||||
|
*$$dep*) \
|
||||||
|
echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \
|
||||||
|
cd $(srcdir) && $(AUTOMAKE) --gnu \
|
||||||
|
&& exit 0; \
|
||||||
|
exit 1;; \
|
||||||
|
esac; \
|
||||||
|
done; \
|
||||||
|
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
|
||||||
|
cd $(top_srcdir) && \
|
||||||
|
$(AUTOMAKE) --gnu Makefile
|
||||||
|
.PRECIOUS: Makefile
|
||||||
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||||
|
@case '$?' in \
|
||||||
|
*config.status*) \
|
||||||
|
echo ' $(SHELL) ./config.status'; \
|
||||||
|
$(SHELL) ./config.status;; \
|
||||||
|
*) \
|
||||||
|
echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
|
||||||
|
cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
|
||||||
|
esac;
|
||||||
|
|
||||||
|
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||||
|
$(SHELL) ./config.status --recheck
|
||||||
|
|
||||||
|
$(top_srcdir)/configure: $(am__configure_deps)
|
||||||
|
cd $(srcdir) && $(AUTOCONF)
|
||||||
|
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
||||||
|
cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
|
||||||
|
|
||||||
|
config.h: stamp-h1
|
||||||
|
@if test ! -f $@; then \
|
||||||
|
rm -f stamp-h1; \
|
||||||
|
$(MAKE) stamp-h1; \
|
||||||
|
else :; fi
|
||||||
|
|
||||||
|
stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
|
||||||
|
@rm -f stamp-h1
|
||||||
|
cd $(top_builddir) && $(SHELL) ./config.status config.h
|
||||||
|
$(srcdir)/config.h.in: $(am__configure_deps)
|
||||||
|
cd $(top_srcdir) && $(AUTOHEADER)
|
||||||
|
rm -f stamp-h1
|
||||||
|
touch $@
|
||||||
|
|
||||||
|
distclean-hdr:
|
||||||
|
-rm -f config.h stamp-h1
|
||||||
|
install-binPROGRAMS: $(bin_PROGRAMS)
|
||||||
|
@$(NORMAL_INSTALL)
|
||||||
|
test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
|
||||||
|
@list='$(bin_PROGRAMS)'; for p in $$list; do \
|
||||||
|
p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
|
||||||
|
if test -f $$p \
|
||||||
|
; then \
|
||||||
|
f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
|
||||||
|
echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
|
||||||
|
$(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
|
||||||
|
else :; fi; \
|
||||||
|
done
|
||||||
|
|
||||||
|
uninstall-binPROGRAMS:
|
||||||
|
@$(NORMAL_UNINSTALL)
|
||||||
|
@list='$(bin_PROGRAMS)'; for p in $$list; do \
|
||||||
|
f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
|
||||||
|
echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
|
||||||
|
rm -f "$(DESTDIR)$(bindir)/$$f"; \
|
||||||
|
done
|
||||||
|
|
||||||
|
clean-binPROGRAMS:
|
||||||
|
-test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
|
||||||
|
nebula$(EXEEXT): $(nebula_OBJECTS) $(nebula_DEPENDENCIES)
|
||||||
|
@rm -f nebula$(EXEEXT)
|
||||||
|
$(LINK) $(nebula_LDFLAGS) $(nebula_OBJECTS) $(nebula_LDADD) $(LIBS)
|
||||||
|
|
||||||
|
mostlyclean-compile:
|
||||||
|
-rm -f *.$(OBJEXT)
|
||||||
|
|
||||||
|
distclean-compile:
|
||||||
|
-rm -f *.tab.c
|
||||||
|
|
||||||
|
include ./$(DEPDIR)/filesave.Po
|
||||||
|
include ./$(DEPDIR)/help.Po
|
||||||
|
include ./$(DEPDIR)/interpreter.Po
|
||||||
|
include ./$(DEPDIR)/main.Po
|
||||||
|
include ./$(DEPDIR)/network.Po
|
||||||
|
include ./$(DEPDIR)/preferences.Po
|
||||||
|
include ./$(DEPDIR)/signals.Po
|
||||||
|
include ./$(DEPDIR)/userlist.Po
|
||||||
|
|
||||||
|
.c.o:
|
||||||
|
if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
|
||||||
|
then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
|
||||||
|
# source='$<' object='$@' libtool=no \
|
||||||
|
# depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' \
|
||||||
|
# $(CCDEPMODE) $(depcomp) \
|
||||||
|
# $(COMPILE) -c $<
|
||||||
|
|
||||||
|
.c.obj:
|
||||||
|
if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
|
||||||
|
then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
|
||||||
|
# source='$<' object='$@' libtool=no \
|
||||||
|
# depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' \
|
||||||
|
# $(CCDEPMODE) $(depcomp) \
|
||||||
|
# $(COMPILE) -c `$(CYGPATH_W) '$<'`
|
||||||
|
uninstall-info-am:
|
||||||
|
|
||||||
|
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
||||||
|
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||||
|
unique=`for i in $$list; do \
|
||||||
|
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||||
|
done | \
|
||||||
|
$(AWK) ' { files[$$0] = 1; } \
|
||||||
|
END { for (i in files) print i; }'`; \
|
||||||
|
mkid -fID $$unique
|
||||||
|
tags: TAGS
|
||||||
|
|
||||||
|
TAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
|
||||||
|
$(TAGS_FILES) $(LISP)
|
||||||
|
tags=; \
|
||||||
|
here=`pwd`; \
|
||||||
|
list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
|
||||||
|
unique=`for i in $$list; do \
|
||||||
|
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||||
|
done | \
|
||||||
|
$(AWK) ' { files[$$0] = 1; } \
|
||||||
|
END { for (i in files) print i; }'`; \
|
||||||
|
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
|
||||||
|
test -n "$$unique" || unique=$$empty_fix; \
|
||||||
|
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||||
|
$$tags $$unique; \
|
||||||
|
fi
|
||||||
|
ctags: CTAGS
|
||||||
|
CTAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
|
||||||
|
$(TAGS_FILES) $(LISP)
|
||||||
|
tags=; \
|
||||||
|
here=`pwd`; \
|
||||||
|
list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
|
||||||
|
unique=`for i in $$list; do \
|
||||||
|
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||||
|
done | \
|
||||||
|
$(AWK) ' { files[$$0] = 1; } \
|
||||||
|
END { for (i in files) print i; }'`; \
|
||||||
|
test -z "$(CTAGS_ARGS)$$tags$$unique" \
|
||||||
|
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||||
|
$$tags $$unique
|
||||||
|
|
||||||
|
GTAGS:
|
||||||
|
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||||
|
&& cd $(top_srcdir) \
|
||||||
|
&& gtags -i $(GTAGS_ARGS) $$here
|
||||||
|
|
||||||
|
distclean-tags:
|
||||||
|
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
||||||
|
|
||||||
|
distdir: $(DISTFILES)
|
||||||
|
$(am__remove_distdir)
|
||||||
|
mkdir $(distdir)
|
||||||
|
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
|
||||||
|
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
|
||||||
|
list='$(DISTFILES)'; for file in $$list; do \
|
||||||
|
case $$file in \
|
||||||
|
$(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
|
||||||
|
$(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
|
||||||
|
esac; \
|
||||||
|
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||||
|
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||||
|
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
|
||||||
|
dir="/$$dir"; \
|
||||||
|
$(mkdir_p) "$(distdir)$$dir"; \
|
||||||
|
else \
|
||||||
|
dir=''; \
|
||||||
|
fi; \
|
||||||
|
if test -d $$d/$$file; then \
|
||||||
|
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||||
|
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
|
||||||
|
fi; \
|
||||||
|
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
|
||||||
|
else \
|
||||||
|
test -f $(distdir)/$$file \
|
||||||
|
|| cp -p $$d/$$file $(distdir)/$$file \
|
||||||
|
|| exit 1; \
|
||||||
|
fi; \
|
||||||
|
done
|
||||||
|
-find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
|
||||||
|
! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
|
||||||
|
! -type d ! -perm -400 -exec chmod a+r {} \; -o \
|
||||||
|
! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
|
||||||
|
|| chmod -R a+r $(distdir)
|
||||||
|
dist-gzip: distdir
|
||||||
|
$(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
|
||||||
|
$(am__remove_distdir)
|
||||||
|
|
||||||
|
dist-bzip2: distdir
|
||||||
|
$(AMTAR) chof - $(distdir) | bzip2 -9 -c >$(distdir).tar.bz2
|
||||||
|
$(am__remove_distdir)
|
||||||
|
|
||||||
|
dist-tarZ: distdir
|
||||||
|
$(AMTAR) chof - $(distdir) | compress -c >$(distdir).tar.Z
|
||||||
|
$(am__remove_distdir)
|
||||||
|
|
||||||
|
dist-shar: distdir
|
||||||
|
shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
|
||||||
|
$(am__remove_distdir)
|
||||||
|
|
||||||
|
dist-zip: distdir
|
||||||
|
-rm -f $(distdir).zip
|
||||||
|
zip -rq $(distdir).zip $(distdir)
|
||||||
|
$(am__remove_distdir)
|
||||||
|
|
||||||
|
dist dist-all: distdir
|
||||||
|
$(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
|
||||||
|
$(am__remove_distdir)
|
||||||
|
|
||||||
|
# This target untars the dist file and tries a VPATH configuration. Then
|
||||||
|
# it guarantees that the distribution is self-contained by making another
|
||||||
|
# tarfile.
|
||||||
|
distcheck: dist
|
||||||
|
case '$(DIST_ARCHIVES)' in \
|
||||||
|
*.tar.gz*) \
|
||||||
|
GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf - ;;\
|
||||||
|
*.tar.bz2*) \
|
||||||
|
bunzip2 -c $(distdir).tar.bz2 | $(AMTAR) xf - ;;\
|
||||||
|
*.tar.Z*) \
|
||||||
|
uncompress -c $(distdir).tar.Z | $(AMTAR) xf - ;;\
|
||||||
|
*.shar.gz*) \
|
||||||
|
GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
|
||||||
|
*.zip*) \
|
||||||
|
unzip $(distdir).zip ;;\
|
||||||
|
esac
|
||||||
|
chmod -R a-w $(distdir); chmod a+w $(distdir)
|
||||||
|
mkdir $(distdir)/_build
|
||||||
|
mkdir $(distdir)/_inst
|
||||||
|
chmod a-w $(distdir)
|
||||||
|
dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
|
||||||
|
&& dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
|
||||||
|
&& cd $(distdir)/_build \
|
||||||
|
&& ../configure --srcdir=.. --prefix="$$dc_install_base" \
|
||||||
|
$(DISTCHECK_CONFIGURE_FLAGS) \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) check \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) install \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) installcheck \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) uninstall \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
|
||||||
|
distuninstallcheck \
|
||||||
|
&& chmod -R a-w "$$dc_install_base" \
|
||||||
|
&& ({ \
|
||||||
|
(cd ../.. && umask 077 && mkdir "$$dc_destdir") \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
|
||||||
|
distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
|
||||||
|
} || { rm -rf "$$dc_destdir"; exit 1; }) \
|
||||||
|
&& rm -rf "$$dc_destdir" \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) dist \
|
||||||
|
&& rm -rf $(DIST_ARCHIVES) \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) distcleancheck
|
||||||
|
$(am__remove_distdir)
|
||||||
|
@(echo "$(distdir) archives ready for distribution: "; \
|
||||||
|
list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
|
||||||
|
sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
|
||||||
|
distuninstallcheck:
|
||||||
|
@cd $(distuninstallcheck_dir) \
|
||||||
|
&& test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
|
||||||
|
|| { echo "ERROR: files left after uninstall:" ; \
|
||||||
|
if test -n "$(DESTDIR)"; then \
|
||||||
|
echo " (check DESTDIR support)"; \
|
||||||
|
fi ; \
|
||||||
|
$(distuninstallcheck_listfiles) ; \
|
||||||
|
exit 1; } >&2
|
||||||
|
distcleancheck: distclean
|
||||||
|
@if test '$(srcdir)' = . ; then \
|
||||||
|
echo "ERROR: distcleancheck can only run from a VPATH build" ; \
|
||||||
|
exit 1 ; \
|
||||||
|
fi
|
||||||
|
@test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
|
||||||
|
|| { echo "ERROR: files left in build directory after distclean:" ; \
|
||||||
|
$(distcleancheck_listfiles) ; \
|
||||||
|
exit 1; } >&2
|
||||||
|
check-am: all-am
|
||||||
|
check: check-am
|
||||||
|
all-am: Makefile $(PROGRAMS) config.h
|
||||||
|
installdirs:
|
||||||
|
for dir in "$(DESTDIR)$(bindir)"; do \
|
||||||
|
test -z "$$dir" || $(mkdir_p) "$$dir"; \
|
||||||
|
done
|
||||||
|
install: install-am
|
||||||
|
install-exec: install-exec-am
|
||||||
|
install-data: install-data-am
|
||||||
|
uninstall: uninstall-am
|
||||||
|
|
||||||
|
install-am: all-am
|
||||||
|
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||||
|
|
||||||
|
installcheck: installcheck-am
|
||||||
|
install-strip:
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||||
|
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||||
|
`test -z '$(STRIP)' || \
|
||||||
|
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
||||||
|
mostlyclean-generic:
|
||||||
|
|
||||||
|
clean-generic:
|
||||||
|
|
||||||
|
distclean-generic:
|
||||||
|
-rm -f $(CONFIG_CLEAN_FILES)
|
||||||
|
|
||||||
|
maintainer-clean-generic:
|
||||||
|
@echo "This command is intended for maintainers to use"
|
||||||
|
@echo "it deletes files that may require special tools to rebuild."
|
||||||
|
clean: clean-am
|
||||||
|
|
||||||
|
clean-am: clean-binPROGRAMS clean-generic mostlyclean-am
|
||||||
|
|
||||||
|
distclean: distclean-am
|
||||||
|
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
||||||
|
-rm -rf ./$(DEPDIR)
|
||||||
|
-rm -f Makefile
|
||||||
|
distclean-am: clean-am distclean-compile distclean-generic \
|
||||||
|
distclean-hdr distclean-tags
|
||||||
|
|
||||||
|
dvi: dvi-am
|
||||||
|
|
||||||
|
dvi-am:
|
||||||
|
|
||||||
|
html: html-am
|
||||||
|
|
||||||
|
info: info-am
|
||||||
|
|
||||||
|
info-am:
|
||||||
|
|
||||||
|
install-data-am:
|
||||||
|
|
||||||
|
install-exec-am: install-binPROGRAMS
|
||||||
|
|
||||||
|
install-info: install-info-am
|
||||||
|
|
||||||
|
install-man:
|
||||||
|
|
||||||
|
installcheck-am:
|
||||||
|
|
||||||
|
maintainer-clean: maintainer-clean-am
|
||||||
|
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
||||||
|
-rm -rf $(top_srcdir)/autom4te.cache
|
||||||
|
-rm -rf ./$(DEPDIR)
|
||||||
|
-rm -f Makefile
|
||||||
|
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||||
|
|
||||||
|
mostlyclean: mostlyclean-am
|
||||||
|
|
||||||
|
mostlyclean-am: mostlyclean-compile mostlyclean-generic
|
||||||
|
|
||||||
|
pdf: pdf-am
|
||||||
|
|
||||||
|
pdf-am:
|
||||||
|
|
||||||
|
ps: ps-am
|
||||||
|
|
||||||
|
ps-am:
|
||||||
|
|
||||||
|
uninstall-am: uninstall-binPROGRAMS uninstall-info-am
|
||||||
|
|
||||||
|
.PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \
|
||||||
|
clean-binPROGRAMS clean-generic ctags dist dist-all dist-bzip2 \
|
||||||
|
dist-gzip dist-shar dist-tarZ dist-zip distcheck distclean \
|
||||||
|
distclean-compile distclean-generic distclean-hdr \
|
||||||
|
distclean-tags distcleancheck distdir distuninstallcheck dvi \
|
||||||
|
dvi-am html html-am info info-am install install-am \
|
||||||
|
install-binPROGRAMS install-data install-data-am install-exec \
|
||||||
|
install-exec-am install-info install-info-am install-man \
|
||||||
|
install-strip installcheck installcheck-am installdirs \
|
||||||
|
maintainer-clean maintainer-clean-generic mostlyclean \
|
||||||
|
mostlyclean-compile mostlyclean-generic pdf pdf-am ps ps-am \
|
||||||
|
tags uninstall uninstall-am uninstall-binPROGRAMS \
|
||||||
|
uninstall-info-am
|
||||||
|
|
||||||
|
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||||
|
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||||
|
.NOEXPORT:
|
5
Makefile.am
Normal file
5
Makefile.am
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
bin_PROGRAMS = nebula
|
||||||
|
nebula_SOURCES = main.c main.h interpreter.c interpreter.h network.c network.h preferences.c preferences.h signals.c signals.h help.c help.h filesave.c filesave.h userlist.c userlist.h
|
||||||
|
EXTRA_DIST = LICENSE
|
||||||
|
|
||||||
|
|
560
Makefile.in
Normal file
560
Makefile.in
Normal file
@ -0,0 +1,560 @@
|
|||||||
|
# Makefile.in generated by automake 1.8.5 from Makefile.am.
|
||||||
|
# @configure_input@
|
||||||
|
|
||||||
|
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||||
|
# 2003, 2004 Free Software Foundation, Inc.
|
||||||
|
# This Makefile.in is free software; the Free Software Foundation
|
||||||
|
# gives unlimited permission to copy and/or distribute it,
|
||||||
|
# with or without modifications, as long as this notice is preserved.
|
||||||
|
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||||
|
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||||
|
# PARTICULAR PURPOSE.
|
||||||
|
|
||||||
|
@SET_MAKE@
|
||||||
|
|
||||||
|
SOURCES = $(nebula_SOURCES)
|
||||||
|
|
||||||
|
srcdir = @srcdir@
|
||||||
|
top_srcdir = @top_srcdir@
|
||||||
|
VPATH = @srcdir@
|
||||||
|
pkgdatadir = $(datadir)/@PACKAGE@
|
||||||
|
pkglibdir = $(libdir)/@PACKAGE@
|
||||||
|
pkgincludedir = $(includedir)/@PACKAGE@
|
||||||
|
top_builddir = .
|
||||||
|
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||||
|
INSTALL = @INSTALL@
|
||||||
|
install_sh_DATA = $(install_sh) -c -m 644
|
||||||
|
install_sh_PROGRAM = $(install_sh) -c
|
||||||
|
install_sh_SCRIPT = $(install_sh) -c
|
||||||
|
INSTALL_HEADER = $(INSTALL_DATA)
|
||||||
|
transform = $(program_transform_name)
|
||||||
|
NORMAL_INSTALL = :
|
||||||
|
PRE_INSTALL = :
|
||||||
|
POST_INSTALL = :
|
||||||
|
NORMAL_UNINSTALL = :
|
||||||
|
PRE_UNINSTALL = :
|
||||||
|
POST_UNINSTALL = :
|
||||||
|
bin_PROGRAMS = nebula$(EXEEXT)
|
||||||
|
subdir = .
|
||||||
|
DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
|
||||||
|
$(srcdir)/Makefile.in $(srcdir)/config.h.in \
|
||||||
|
$(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \
|
||||||
|
config.guess config.sub depcomp install-sh missing
|
||||||
|
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||||
|
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
|
||||||
|
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||||
|
$(ACLOCAL_M4)
|
||||||
|
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
|
||||||
|
configure.lineno configure.status.lineno
|
||||||
|
mkinstalldirs = $(mkdir_p)
|
||||||
|
CONFIG_HEADER = config.h
|
||||||
|
CONFIG_CLEAN_FILES =
|
||||||
|
am__installdirs = "$(DESTDIR)$(bindir)"
|
||||||
|
binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
|
||||||
|
PROGRAMS = $(bin_PROGRAMS)
|
||||||
|
am_nebula_OBJECTS = main.$(OBJEXT) interpreter.$(OBJEXT) \
|
||||||
|
network.$(OBJEXT) preferences.$(OBJEXT) signals.$(OBJEXT) \
|
||||||
|
help.$(OBJEXT) filesave.$(OBJEXT) userlist.$(OBJEXT)
|
||||||
|
nebula_OBJECTS = $(am_nebula_OBJECTS)
|
||||||
|
nebula_LDADD = $(LDADD)
|
||||||
|
DEFAULT_INCLUDES = -I. -I$(srcdir) -I.
|
||||||
|
depcomp = $(SHELL) $(top_srcdir)/depcomp
|
||||||
|
am__depfiles_maybe = depfiles
|
||||||
|
@AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/filesave.Po ./$(DEPDIR)/help.Po \
|
||||||
|
@AMDEP_TRUE@ ./$(DEPDIR)/interpreter.Po ./$(DEPDIR)/main.Po \
|
||||||
|
@AMDEP_TRUE@ ./$(DEPDIR)/network.Po ./$(DEPDIR)/preferences.Po \
|
||||||
|
@AMDEP_TRUE@ ./$(DEPDIR)/signals.Po ./$(DEPDIR)/userlist.Po
|
||||||
|
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
|
||||||
|
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||||
|
CCLD = $(CC)
|
||||||
|
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
|
||||||
|
SOURCES = $(nebula_SOURCES)
|
||||||
|
DIST_SOURCES = $(nebula_SOURCES)
|
||||||
|
ETAGS = etags
|
||||||
|
CTAGS = ctags
|
||||||
|
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
|
distdir = $(PACKAGE)-$(VERSION)
|
||||||
|
top_distdir = $(distdir)
|
||||||
|
am__remove_distdir = \
|
||||||
|
{ test ! -d $(distdir) \
|
||||||
|
|| { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
|
||||||
|
&& rm -fr $(distdir); }; }
|
||||||
|
DIST_ARCHIVES = $(distdir).tar.gz
|
||||||
|
GZIP_ENV = --best
|
||||||
|
distuninstallcheck_listfiles = find . -type f -print
|
||||||
|
distcleancheck_listfiles = find . -type f -print
|
||||||
|
ACLOCAL = @ACLOCAL@
|
||||||
|
AMDEP_FALSE = @AMDEP_FALSE@
|
||||||
|
AMDEP_TRUE = @AMDEP_TRUE@
|
||||||
|
AMTAR = @AMTAR@
|
||||||
|
AUTOCONF = @AUTOCONF@
|
||||||
|
AUTOHEADER = @AUTOHEADER@
|
||||||
|
AUTOMAKE = @AUTOMAKE@
|
||||||
|
AWK = @AWK@
|
||||||
|
CC = @CC@
|
||||||
|
CCDEPMODE = @CCDEPMODE@
|
||||||
|
CFLAGS = @CFLAGS@
|
||||||
|
CPP = @CPP@
|
||||||
|
CPPFLAGS = @CPPFLAGS@
|
||||||
|
CYGPATH_W = @CYGPATH_W@
|
||||||
|
DEFS = @DEFS@
|
||||||
|
DEPDIR = @DEPDIR@
|
||||||
|
ECHO_C = @ECHO_C@
|
||||||
|
ECHO_N = @ECHO_N@
|
||||||
|
ECHO_T = @ECHO_T@
|
||||||
|
EGREP = @EGREP@
|
||||||
|
EXEEXT = @EXEEXT@
|
||||||
|
INSTALL_DATA = @INSTALL_DATA@
|
||||||
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||||
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||||
|
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||||
|
ISYSTEM = @ISYSTEM@
|
||||||
|
LDFLAGS = @LDFLAGS@
|
||||||
|
LIBOBJS = @LIBOBJS@
|
||||||
|
LIBS = @LIBS@
|
||||||
|
LTLIBOBJS = @LTLIBOBJS@
|
||||||
|
MAKEINFO = @MAKEINFO@
|
||||||
|
NEBULA_ARCHOS = @NEBULA_ARCHOS@
|
||||||
|
OBJEXT = @OBJEXT@
|
||||||
|
PACKAGE = @PACKAGE@
|
||||||
|
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||||
|
PACKAGE_NAME = @PACKAGE_NAME@
|
||||||
|
PACKAGE_STRING = @PACKAGE_STRING@
|
||||||
|
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||||
|
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||||
|
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||||
|
SET_MAKE = @SET_MAKE@
|
||||||
|
SGM_LIBS = @SGM_LIBS@
|
||||||
|
SHELL = @SHELL@
|
||||||
|
STRIP = @STRIP@
|
||||||
|
VERSION = @VERSION@
|
||||||
|
X11_LIBS = @X11_LIBS@
|
||||||
|
XM_LIBS = @XM_LIBS@
|
||||||
|
XT_LIBS = @XT_LIBS@
|
||||||
|
X_CFLAGS = @X_CFLAGS@
|
||||||
|
X_EXTRA_LIBS = @X_EXTRA_LIBS@
|
||||||
|
X_LIBS = @X_LIBS@
|
||||||
|
X_PRE_LIBS = @X_PRE_LIBS@
|
||||||
|
ac_ct_CC = @ac_ct_CC@
|
||||||
|
ac_ct_STRIP = @ac_ct_STRIP@
|
||||||
|
am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
|
||||||
|
am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
|
||||||
|
am__include = @am__include@
|
||||||
|
am__leading_dot = @am__leading_dot@
|
||||||
|
am__quote = @am__quote@
|
||||||
|
bindir = @bindir@
|
||||||
|
build = @build@
|
||||||
|
build_alias = @build_alias@
|
||||||
|
build_cpu = @build_cpu@
|
||||||
|
build_os = @build_os@
|
||||||
|
build_vendor = @build_vendor@
|
||||||
|
datadir = @datadir@
|
||||||
|
exec_prefix = @exec_prefix@
|
||||||
|
host_alias = @host_alias@
|
||||||
|
includedir = @includedir@
|
||||||
|
infodir = @infodir@
|
||||||
|
install_sh = @install_sh@
|
||||||
|
libdir = @libdir@
|
||||||
|
libexecdir = @libexecdir@
|
||||||
|
localstatedir = @localstatedir@
|
||||||
|
mandir = @mandir@
|
||||||
|
mkdir_p = @mkdir_p@
|
||||||
|
oldincludedir = @oldincludedir@
|
||||||
|
prefix = @prefix@
|
||||||
|
program_transform_name = @program_transform_name@
|
||||||
|
sbindir = @sbindir@
|
||||||
|
sharedstatedir = @sharedstatedir@
|
||||||
|
sysconfdir = @sysconfdir@
|
||||||
|
target_alias = @target_alias@
|
||||||
|
nebula_SOURCES = main.c main.h interpreter.c interpreter.h network.c network.h preferences.c preferences.h signals.c signals.h help.c help.h filesave.c filesave.h userlist.c userlist.h
|
||||||
|
EXTRA_DIST = LICENSE
|
||||||
|
all: config.h
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) all-am
|
||||||
|
|
||||||
|
.SUFFIXES:
|
||||||
|
.SUFFIXES: .c .o .obj
|
||||||
|
am--refresh:
|
||||||
|
@:
|
||||||
|
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
||||||
|
@for dep in $?; do \
|
||||||
|
case '$(am__configure_deps)' in \
|
||||||
|
*$$dep*) \
|
||||||
|
echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \
|
||||||
|
cd $(srcdir) && $(AUTOMAKE) --gnu \
|
||||||
|
&& exit 0; \
|
||||||
|
exit 1;; \
|
||||||
|
esac; \
|
||||||
|
done; \
|
||||||
|
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
|
||||||
|
cd $(top_srcdir) && \
|
||||||
|
$(AUTOMAKE) --gnu Makefile
|
||||||
|
.PRECIOUS: Makefile
|
||||||
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||||
|
@case '$?' in \
|
||||||
|
*config.status*) \
|
||||||
|
echo ' $(SHELL) ./config.status'; \
|
||||||
|
$(SHELL) ./config.status;; \
|
||||||
|
*) \
|
||||||
|
echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
|
||||||
|
cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
|
||||||
|
esac;
|
||||||
|
|
||||||
|
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||||
|
$(SHELL) ./config.status --recheck
|
||||||
|
|
||||||
|
$(top_srcdir)/configure: $(am__configure_deps)
|
||||||
|
cd $(srcdir) && $(AUTOCONF)
|
||||||
|
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
||||||
|
cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
|
||||||
|
|
||||||
|
config.h: stamp-h1
|
||||||
|
@if test ! -f $@; then \
|
||||||
|
rm -f stamp-h1; \
|
||||||
|
$(MAKE) stamp-h1; \
|
||||||
|
else :; fi
|
||||||
|
|
||||||
|
stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
|
||||||
|
@rm -f stamp-h1
|
||||||
|
cd $(top_builddir) && $(SHELL) ./config.status config.h
|
||||||
|
$(srcdir)/config.h.in: $(am__configure_deps)
|
||||||
|
cd $(top_srcdir) && $(AUTOHEADER)
|
||||||
|
rm -f stamp-h1
|
||||||
|
touch $@
|
||||||
|
|
||||||
|
distclean-hdr:
|
||||||
|
-rm -f config.h stamp-h1
|
||||||
|
install-binPROGRAMS: $(bin_PROGRAMS)
|
||||||
|
@$(NORMAL_INSTALL)
|
||||||
|
test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
|
||||||
|
@list='$(bin_PROGRAMS)'; for p in $$list; do \
|
||||||
|
p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
|
||||||
|
if test -f $$p \
|
||||||
|
; then \
|
||||||
|
f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
|
||||||
|
echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
|
||||||
|
$(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
|
||||||
|
else :; fi; \
|
||||||
|
done
|
||||||
|
|
||||||
|
uninstall-binPROGRAMS:
|
||||||
|
@$(NORMAL_UNINSTALL)
|
||||||
|
@list='$(bin_PROGRAMS)'; for p in $$list; do \
|
||||||
|
f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
|
||||||
|
echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
|
||||||
|
rm -f "$(DESTDIR)$(bindir)/$$f"; \
|
||||||
|
done
|
||||||
|
|
||||||
|
clean-binPROGRAMS:
|
||||||
|
-test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
|
||||||
|
nebula$(EXEEXT): $(nebula_OBJECTS) $(nebula_DEPENDENCIES)
|
||||||
|
@rm -f nebula$(EXEEXT)
|
||||||
|
$(LINK) $(nebula_LDFLAGS) $(nebula_OBJECTS) $(nebula_LDADD) $(LIBS)
|
||||||
|
|
||||||
|
mostlyclean-compile:
|
||||||
|
-rm -f *.$(OBJEXT)
|
||||||
|
|
||||||
|
distclean-compile:
|
||||||
|
-rm -f *.tab.c
|
||||||
|
|
||||||
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/filesave.Po@am__quote@
|
||||||
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/help.Po@am__quote@
|
||||||
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/interpreter.Po@am__quote@
|
||||||
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main.Po@am__quote@
|
||||||
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/network.Po@am__quote@
|
||||||
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/preferences.Po@am__quote@
|
||||||
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/signals.Po@am__quote@
|
||||||
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/userlist.Po@am__quote@
|
||||||
|
|
||||||
|
.c.o:
|
||||||
|
@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
|
||||||
|
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
|
||||||
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||||
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
|
||||||
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
|
@am__fastdepCC_FALSE@ $(COMPILE) -c $<
|
||||||
|
|
||||||
|
.c.obj:
|
||||||
|
@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
|
||||||
|
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
|
||||||
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||||
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
|
||||||
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
|
@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
|
||||||
|
uninstall-info-am:
|
||||||
|
|
||||||
|
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
||||||
|
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||||
|
unique=`for i in $$list; do \
|
||||||
|
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||||
|
done | \
|
||||||
|
$(AWK) ' { files[$$0] = 1; } \
|
||||||
|
END { for (i in files) print i; }'`; \
|
||||||
|
mkid -fID $$unique
|
||||||
|
tags: TAGS
|
||||||
|
|
||||||
|
TAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
|
||||||
|
$(TAGS_FILES) $(LISP)
|
||||||
|
tags=; \
|
||||||
|
here=`pwd`; \
|
||||||
|
list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
|
||||||
|
unique=`for i in $$list; do \
|
||||||
|
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||||
|
done | \
|
||||||
|
$(AWK) ' { files[$$0] = 1; } \
|
||||||
|
END { for (i in files) print i; }'`; \
|
||||||
|
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
|
||||||
|
test -n "$$unique" || unique=$$empty_fix; \
|
||||||
|
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||||
|
$$tags $$unique; \
|
||||||
|
fi
|
||||||
|
ctags: CTAGS
|
||||||
|
CTAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
|
||||||
|
$(TAGS_FILES) $(LISP)
|
||||||
|
tags=; \
|
||||||
|
here=`pwd`; \
|
||||||
|
list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
|
||||||
|
unique=`for i in $$list; do \
|
||||||
|
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||||
|
done | \
|
||||||
|
$(AWK) ' { files[$$0] = 1; } \
|
||||||
|
END { for (i in files) print i; }'`; \
|
||||||
|
test -z "$(CTAGS_ARGS)$$tags$$unique" \
|
||||||
|
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||||
|
$$tags $$unique
|
||||||
|
|
||||||
|
GTAGS:
|
||||||
|
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||||
|
&& cd $(top_srcdir) \
|
||||||
|
&& gtags -i $(GTAGS_ARGS) $$here
|
||||||
|
|
||||||
|
distclean-tags:
|
||||||
|
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
||||||
|
|
||||||
|
distdir: $(DISTFILES)
|
||||||
|
$(am__remove_distdir)
|
||||||
|
mkdir $(distdir)
|
||||||
|
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
|
||||||
|
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
|
||||||
|
list='$(DISTFILES)'; for file in $$list; do \
|
||||||
|
case $$file in \
|
||||||
|
$(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
|
||||||
|
$(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
|
||||||
|
esac; \
|
||||||
|
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||||
|
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||||
|
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
|
||||||
|
dir="/$$dir"; \
|
||||||
|
$(mkdir_p) "$(distdir)$$dir"; \
|
||||||
|
else \
|
||||||
|
dir=''; \
|
||||||
|
fi; \
|
||||||
|
if test -d $$d/$$file; then \
|
||||||
|
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||||
|
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
|
||||||
|
fi; \
|
||||||
|
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
|
||||||
|
else \
|
||||||
|
test -f $(distdir)/$$file \
|
||||||
|
|| cp -p $$d/$$file $(distdir)/$$file \
|
||||||
|
|| exit 1; \
|
||||||
|
fi; \
|
||||||
|
done
|
||||||
|
-find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
|
||||||
|
! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
|
||||||
|
! -type d ! -perm -400 -exec chmod a+r {} \; -o \
|
||||||
|
! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
|
||||||
|
|| chmod -R a+r $(distdir)
|
||||||
|
dist-gzip: distdir
|
||||||
|
$(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
|
||||||
|
$(am__remove_distdir)
|
||||||
|
|
||||||
|
dist-bzip2: distdir
|
||||||
|
$(AMTAR) chof - $(distdir) | bzip2 -9 -c >$(distdir).tar.bz2
|
||||||
|
$(am__remove_distdir)
|
||||||
|
|
||||||
|
dist-tarZ: distdir
|
||||||
|
$(AMTAR) chof - $(distdir) | compress -c >$(distdir).tar.Z
|
||||||
|
$(am__remove_distdir)
|
||||||
|
|
||||||
|
dist-shar: distdir
|
||||||
|
shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
|
||||||
|
$(am__remove_distdir)
|
||||||
|
|
||||||
|
dist-zip: distdir
|
||||||
|
-rm -f $(distdir).zip
|
||||||
|
zip -rq $(distdir).zip $(distdir)
|
||||||
|
$(am__remove_distdir)
|
||||||
|
|
||||||
|
dist dist-all: distdir
|
||||||
|
$(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
|
||||||
|
$(am__remove_distdir)
|
||||||
|
|
||||||
|
# This target untars the dist file and tries a VPATH configuration. Then
|
||||||
|
# it guarantees that the distribution is self-contained by making another
|
||||||
|
# tarfile.
|
||||||
|
distcheck: dist
|
||||||
|
case '$(DIST_ARCHIVES)' in \
|
||||||
|
*.tar.gz*) \
|
||||||
|
GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf - ;;\
|
||||||
|
*.tar.bz2*) \
|
||||||
|
bunzip2 -c $(distdir).tar.bz2 | $(AMTAR) xf - ;;\
|
||||||
|
*.tar.Z*) \
|
||||||
|
uncompress -c $(distdir).tar.Z | $(AMTAR) xf - ;;\
|
||||||
|
*.shar.gz*) \
|
||||||
|
GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
|
||||||
|
*.zip*) \
|
||||||
|
unzip $(distdir).zip ;;\
|
||||||
|
esac
|
||||||
|
chmod -R a-w $(distdir); chmod a+w $(distdir)
|
||||||
|
mkdir $(distdir)/_build
|
||||||
|
mkdir $(distdir)/_inst
|
||||||
|
chmod a-w $(distdir)
|
||||||
|
dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
|
||||||
|
&& dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
|
||||||
|
&& cd $(distdir)/_build \
|
||||||
|
&& ../configure --srcdir=.. --prefix="$$dc_install_base" \
|
||||||
|
$(DISTCHECK_CONFIGURE_FLAGS) \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) check \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) install \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) installcheck \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) uninstall \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
|
||||||
|
distuninstallcheck \
|
||||||
|
&& chmod -R a-w "$$dc_install_base" \
|
||||||
|
&& ({ \
|
||||||
|
(cd ../.. && umask 077 && mkdir "$$dc_destdir") \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
|
||||||
|
distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
|
||||||
|
} || { rm -rf "$$dc_destdir"; exit 1; }) \
|
||||||
|
&& rm -rf "$$dc_destdir" \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) dist \
|
||||||
|
&& rm -rf $(DIST_ARCHIVES) \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) distcleancheck
|
||||||
|
$(am__remove_distdir)
|
||||||
|
@(echo "$(distdir) archives ready for distribution: "; \
|
||||||
|
list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
|
||||||
|
sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
|
||||||
|
distuninstallcheck:
|
||||||
|
@cd $(distuninstallcheck_dir) \
|
||||||
|
&& test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
|
||||||
|
|| { echo "ERROR: files left after uninstall:" ; \
|
||||||
|
if test -n "$(DESTDIR)"; then \
|
||||||
|
echo " (check DESTDIR support)"; \
|
||||||
|
fi ; \
|
||||||
|
$(distuninstallcheck_listfiles) ; \
|
||||||
|
exit 1; } >&2
|
||||||
|
distcleancheck: distclean
|
||||||
|
@if test '$(srcdir)' = . ; then \
|
||||||
|
echo "ERROR: distcleancheck can only run from a VPATH build" ; \
|
||||||
|
exit 1 ; \
|
||||||
|
fi
|
||||||
|
@test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
|
||||||
|
|| { echo "ERROR: files left in build directory after distclean:" ; \
|
||||||
|
$(distcleancheck_listfiles) ; \
|
||||||
|
exit 1; } >&2
|
||||||
|
check-am: all-am
|
||||||
|
check: check-am
|
||||||
|
all-am: Makefile $(PROGRAMS) config.h
|
||||||
|
installdirs:
|
||||||
|
for dir in "$(DESTDIR)$(bindir)"; do \
|
||||||
|
test -z "$$dir" || $(mkdir_p) "$$dir"; \
|
||||||
|
done
|
||||||
|
install: install-am
|
||||||
|
install-exec: install-exec-am
|
||||||
|
install-data: install-data-am
|
||||||
|
uninstall: uninstall-am
|
||||||
|
|
||||||
|
install-am: all-am
|
||||||
|
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||||
|
|
||||||
|
installcheck: installcheck-am
|
||||||
|
install-strip:
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||||
|
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||||
|
`test -z '$(STRIP)' || \
|
||||||
|
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
||||||
|
mostlyclean-generic:
|
||||||
|
|
||||||
|
clean-generic:
|
||||||
|
|
||||||
|
distclean-generic:
|
||||||
|
-rm -f $(CONFIG_CLEAN_FILES)
|
||||||
|
|
||||||
|
maintainer-clean-generic:
|
||||||
|
@echo "This command is intended for maintainers to use"
|
||||||
|
@echo "it deletes files that may require special tools to rebuild."
|
||||||
|
clean: clean-am
|
||||||
|
|
||||||
|
clean-am: clean-binPROGRAMS clean-generic mostlyclean-am
|
||||||
|
|
||||||
|
distclean: distclean-am
|
||||||
|
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
||||||
|
-rm -rf ./$(DEPDIR)
|
||||||
|
-rm -f Makefile
|
||||||
|
distclean-am: clean-am distclean-compile distclean-generic \
|
||||||
|
distclean-hdr distclean-tags
|
||||||
|
|
||||||
|
dvi: dvi-am
|
||||||
|
|
||||||
|
dvi-am:
|
||||||
|
|
||||||
|
html: html-am
|
||||||
|
|
||||||
|
info: info-am
|
||||||
|
|
||||||
|
info-am:
|
||||||
|
|
||||||
|
install-data-am:
|
||||||
|
|
||||||
|
install-exec-am: install-binPROGRAMS
|
||||||
|
|
||||||
|
install-info: install-info-am
|
||||||
|
|
||||||
|
install-man:
|
||||||
|
|
||||||
|
installcheck-am:
|
||||||
|
|
||||||
|
maintainer-clean: maintainer-clean-am
|
||||||
|
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
||||||
|
-rm -rf $(top_srcdir)/autom4te.cache
|
||||||
|
-rm -rf ./$(DEPDIR)
|
||||||
|
-rm -f Makefile
|
||||||
|
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||||
|
|
||||||
|
mostlyclean: mostlyclean-am
|
||||||
|
|
||||||
|
mostlyclean-am: mostlyclean-compile mostlyclean-generic
|
||||||
|
|
||||||
|
pdf: pdf-am
|
||||||
|
|
||||||
|
pdf-am:
|
||||||
|
|
||||||
|
ps: ps-am
|
||||||
|
|
||||||
|
ps-am:
|
||||||
|
|
||||||
|
uninstall-am: uninstall-binPROGRAMS uninstall-info-am
|
||||||
|
|
||||||
|
.PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \
|
||||||
|
clean-binPROGRAMS clean-generic ctags dist dist-all dist-bzip2 \
|
||||||
|
dist-gzip dist-shar dist-tarZ dist-zip distcheck distclean \
|
||||||
|
distclean-compile distclean-generic distclean-hdr \
|
||||||
|
distclean-tags distcleancheck distdir distuninstallcheck dvi \
|
||||||
|
dvi-am html html-am info info-am install install-am \
|
||||||
|
install-binPROGRAMS install-data install-data-am install-exec \
|
||||||
|
install-exec-am install-info install-info-am install-man \
|
||||||
|
install-strip installcheck installcheck-am installdirs \
|
||||||
|
maintainer-clean maintainer-clean-generic mostlyclean \
|
||||||
|
mostlyclean-compile mostlyclean-generic pdf pdf-am ps ps-am \
|
||||||
|
tags uninstall uninstall-am uninstall-binPROGRAMS \
|
||||||
|
uninstall-info-am
|
||||||
|
|
||||||
|
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||||
|
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||||
|
.NOEXPORT:
|
34
NEWS
Normal file
34
NEWS
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
-- version 0.5 --
|
||||||
|
- missing help panels added, minor corrections done
|
||||||
|
- customizes the file save panel on Irix version that provide it
|
||||||
|
- preferences settings and saving of preferences file
|
||||||
|
- user lists and user specific commands!
|
||||||
|
|
||||||
|
-- version 0.4 --
|
||||||
|
(22 Februart 2005)
|
||||||
|
- new core again, this time it adds netowrk events to the Xt event handler
|
||||||
|
- added op and deop shortcuts for mode
|
||||||
|
|
||||||
|
-- version 0.3 --
|
||||||
|
(10 January 2005)
|
||||||
|
- completely new core concept, now with a single event handler using select()
|
||||||
|
for both X11 and socket file descriptors, instead of continuous SIGALRM
|
||||||
|
|
||||||
|
-- version 0.2 --
|
||||||
|
(14 November 2004)
|
||||||
|
- added configure tools
|
||||||
|
- fixed a nasty initalization bug that caused segfaults
|
||||||
|
- added support for some CTCP commands (send/receive actions, version...)
|
||||||
|
- added startup pref panel
|
||||||
|
- implemented bare-bones help
|
||||||
|
- implemented file save
|
||||||
|
- fixed bugs and implemented more commands.
|
||||||
|
|
||||||
|
-- version 0.1 alpha --
|
||||||
|
(21 September 2004)
|
||||||
|
- initial CVS import on SF
|
||||||
|
|
||||||
|
-- version 0.0 --
|
||||||
|
(14 September 2004)
|
||||||
|
- project creation on SF
|
||||||
|
- first lines of code!
|
22
README
Normal file
22
README
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
NEBULA
|
||||||
|
|
||||||
|
an IRC client for X11 and Motif
|
||||||
|
|
||||||
|
-------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
Nebula aims to be a graphical IRC client, aimed at the unix and compatible platforms and using the motif/openmotif or the lesstif ToolKit.
|
||||||
|
The goals are
|
||||||
|
- portability to various unix systems (planned are already Linux, *BSD, Solaris, Irix and AIX)
|
||||||
|
- small footprint and low system resource usage
|
||||||
|
- speed
|
||||||
|
- clear, non intrusive GUI
|
||||||
|
- security
|
||||||
|
|
||||||
|
|
||||||
|
TODO
|
||||||
|
- implement some sort of preferences for nickname and channel
|
||||||
|
- implement more CTCP commands
|
||||||
|
- implement channel operator commands
|
||||||
|
- add configure checks and guards for gethostname and sys/param.h (for the hostname stuff)
|
||||||
|
- add configure checks and potential workaround for uname call for system information (use ARCHOS)
|
9
TODO
Normal file
9
TODO
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
- Figure out how to terminate connecting to a server if the provided port number is invalid.
|
||||||
|
- Fix the infinite loop caused by providing a number as the server to join.
|
||||||
|
- Add the ability to close the current server connection and open a new one.
|
||||||
|
- Add the LIST command.
|
||||||
|
- Remove references to Freenode, and replace the default config with errors when fields aren't filled.
|
||||||
|
- Change build system from autoconf to plain make.
|
||||||
|
- Remove platform-specific code.
|
||||||
|
- Implement proper preferences handling
|
||||||
|
- Implement chanop commands
|
908
aclocal.m4
vendored
Normal file
908
aclocal.m4
vendored
Normal file
@ -0,0 +1,908 @@
|
|||||||
|
# generated automatically by aclocal 1.8.5 -*- Autoconf -*-
|
||||||
|
|
||||||
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
|
||||||
|
# Free Software Foundation, Inc.
|
||||||
|
# This file is free software; the Free Software Foundation
|
||||||
|
# gives unlimited permission to copy and/or distribute it,
|
||||||
|
# with or without modifications, as long as this notice is preserved.
|
||||||
|
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||||
|
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||||
|
# PARTICULAR PURPOSE.
|
||||||
|
|
||||||
|
# -*- Autoconf -*-
|
||||||
|
# Copyright (C) 2002, 2003 Free Software Foundation, Inc.
|
||||||
|
# Generated from amversion.in; do not edit by hand.
|
||||||
|
|
||||||
|
# This program is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
# any later version.
|
||||||
|
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
||||||
|
|
||||||
|
# AM_AUTOMAKE_VERSION(VERSION)
|
||||||
|
# ----------------------------
|
||||||
|
# Automake X.Y traces this macro to ensure aclocal.m4 has been
|
||||||
|
# generated from the m4 files accompanying Automake X.Y.
|
||||||
|
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.8"])
|
||||||
|
|
||||||
|
# AM_SET_CURRENT_AUTOMAKE_VERSION
|
||||||
|
# -------------------------------
|
||||||
|
# Call AM_AUTOMAKE_VERSION so it can be traced.
|
||||||
|
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
|
||||||
|
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
|
||||||
|
[AM_AUTOMAKE_VERSION([1.8.5])])
|
||||||
|
|
||||||
|
# AM_AUX_DIR_EXPAND
|
||||||
|
|
||||||
|
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
|
||||||
|
|
||||||
|
# This program is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
# any later version.
|
||||||
|
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
||||||
|
# 02111-1307, USA.
|
||||||
|
|
||||||
|
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
|
||||||
|
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
|
||||||
|
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
|
||||||
|
#
|
||||||
|
# Of course, Automake must honor this variable whenever it calls a
|
||||||
|
# tool from the auxiliary directory. The problem is that $srcdir (and
|
||||||
|
# therefore $ac_aux_dir as well) can be either absolute or relative,
|
||||||
|
# depending on how configure is run. This is pretty annoying, since
|
||||||
|
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
|
||||||
|
# source directory, any form will work fine, but in subdirectories a
|
||||||
|
# relative path needs to be adjusted first.
|
||||||
|
#
|
||||||
|
# $ac_aux_dir/missing
|
||||||
|
# fails when called from a subdirectory if $ac_aux_dir is relative
|
||||||
|
# $top_srcdir/$ac_aux_dir/missing
|
||||||
|
# fails if $ac_aux_dir is absolute,
|
||||||
|
# fails when called from a subdirectory in a VPATH build with
|
||||||
|
# a relative $ac_aux_dir
|
||||||
|
#
|
||||||
|
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
|
||||||
|
# are both prefixed by $srcdir. In an in-source build this is usually
|
||||||
|
# harmless because $srcdir is `.', but things will broke when you
|
||||||
|
# start a VPATH build or use an absolute $srcdir.
|
||||||
|
#
|
||||||
|
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
|
||||||
|
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
|
||||||
|
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
|
||||||
|
# and then we would define $MISSING as
|
||||||
|
# MISSING="\${SHELL} $am_aux_dir/missing"
|
||||||
|
# This will work as long as MISSING is not called from configure, because
|
||||||
|
# unfortunately $(top_srcdir) has no meaning in configure.
|
||||||
|
# However there are other variables, like CC, which are often used in
|
||||||
|
# configure, and could therefore not use this "fixed" $ac_aux_dir.
|
||||||
|
#
|
||||||
|
# Another solution, used here, is to always expand $ac_aux_dir to an
|
||||||
|
# absolute PATH. The drawback is that using absolute paths prevent a
|
||||||
|
# configured tree to be moved without reconfiguration.
|
||||||
|
|
||||||
|
AC_DEFUN([AM_AUX_DIR_EXPAND],
|
||||||
|
[dnl Rely on autoconf to set up CDPATH properly.
|
||||||
|
AC_PREREQ([2.50])dnl
|
||||||
|
# expand $ac_aux_dir to an absolute path
|
||||||
|
am_aux_dir=`cd $ac_aux_dir && pwd`
|
||||||
|
])
|
||||||
|
|
||||||
|
# AM_CONDITIONAL -*- Autoconf -*-
|
||||||
|
|
||||||
|
# Copyright (C) 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
|
||||||
|
|
||||||
|
# This program is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
# any later version.
|
||||||
|
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
||||||
|
# 02111-1307, USA.
|
||||||
|
|
||||||
|
# serial 6
|
||||||
|
|
||||||
|
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
|
||||||
|
# -------------------------------------
|
||||||
|
# Define a conditional.
|
||||||
|
AC_DEFUN([AM_CONDITIONAL],
|
||||||
|
[AC_PREREQ(2.52)dnl
|
||||||
|
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
|
||||||
|
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
|
||||||
|
AC_SUBST([$1_TRUE])
|
||||||
|
AC_SUBST([$1_FALSE])
|
||||||
|
if $2; then
|
||||||
|
$1_TRUE=
|
||||||
|
$1_FALSE='#'
|
||||||
|
else
|
||||||
|
$1_TRUE='#'
|
||||||
|
$1_FALSE=
|
||||||
|
fi
|
||||||
|
AC_CONFIG_COMMANDS_PRE(
|
||||||
|
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
|
||||||
|
AC_MSG_ERROR([conditional "$1" was never defined.
|
||||||
|
Usually this means the macro was only invoked conditionally.])
|
||||||
|
fi])])
|
||||||
|
|
||||||
|
# serial 7 -*- Autoconf -*-
|
||||||
|
|
||||||
|
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
|
||||||
|
# Free Software Foundation, Inc.
|
||||||
|
|
||||||
|
# This program is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
# any later version.
|
||||||
|
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
||||||
|
# 02111-1307, USA.
|
||||||
|
|
||||||
|
|
||||||
|
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
|
||||||
|
# written in clear, in which case automake, when reading aclocal.m4,
|
||||||
|
# will think it sees a *use*, and therefore will trigger all it's
|
||||||
|
# C support machinery. Also note that it means that autoscan, seeing
|
||||||
|
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# _AM_DEPENDENCIES(NAME)
|
||||||
|
# ----------------------
|
||||||
|
# See how the compiler implements dependency checking.
|
||||||
|
# NAME is "CC", "CXX", "GCJ", or "OBJC".
|
||||||
|
# We try a few techniques and use that to set a single cache variable.
|
||||||
|
#
|
||||||
|
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
|
||||||
|
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
|
||||||
|
# dependency, and given that the user is not expected to run this macro,
|
||||||
|
# just rely on AC_PROG_CC.
|
||||||
|
AC_DEFUN([_AM_DEPENDENCIES],
|
||||||
|
[AC_REQUIRE([AM_SET_DEPDIR])dnl
|
||||||
|
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
|
||||||
|
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
|
||||||
|
AC_REQUIRE([AM_DEP_TRACK])dnl
|
||||||
|
|
||||||
|
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
|
||||||
|
[$1], CXX, [depcc="$CXX" am_compiler_list=],
|
||||||
|
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
|
||||||
|
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
|
||||||
|
[depcc="$$1" am_compiler_list=])
|
||||||
|
|
||||||
|
AC_CACHE_CHECK([dependency style of $depcc],
|
||||||
|
[am_cv_$1_dependencies_compiler_type],
|
||||||
|
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
||||||
|
# We make a subdir and do the tests there. Otherwise we can end up
|
||||||
|
# making bogus files that we don't know about and never remove. For
|
||||||
|
# instance it was reported that on HP-UX the gcc test will end up
|
||||||
|
# making a dummy file named `D' -- because `-MD' means `put the output
|
||||||
|
# in D'.
|
||||||
|
mkdir conftest.dir
|
||||||
|
# Copy depcomp to subdir because otherwise we won't find it if we're
|
||||||
|
# using a relative directory.
|
||||||
|
cp "$am_depcomp" conftest.dir
|
||||||
|
cd conftest.dir
|
||||||
|
# We will build objects and dependencies in a subdirectory because
|
||||||
|
# it helps to detect inapplicable dependency modes. For instance
|
||||||
|
# both Tru64's cc and ICC support -MD to output dependencies as a
|
||||||
|
# side effect of compilation, but ICC will put the dependencies in
|
||||||
|
# the current directory while Tru64 will put them in the object
|
||||||
|
# directory.
|
||||||
|
mkdir sub
|
||||||
|
|
||||||
|
am_cv_$1_dependencies_compiler_type=none
|
||||||
|
if test "$am_compiler_list" = ""; then
|
||||||
|
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
|
||||||
|
fi
|
||||||
|
for depmode in $am_compiler_list; do
|
||||||
|
# Setup a source with many dependencies, because some compilers
|
||||||
|
# like to wrap large dependency lists on column 80 (with \), and
|
||||||
|
# we should not choose a depcomp mode which is confused by this.
|
||||||
|
#
|
||||||
|
# We need to recreate these files for each test, as the compiler may
|
||||||
|
# overwrite some of them when testing with obscure command lines.
|
||||||
|
# This happens at least with the AIX C compiler.
|
||||||
|
: > sub/conftest.c
|
||||||
|
for i in 1 2 3 4 5 6; do
|
||||||
|
echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
||||||
|
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
|
||||||
|
# Solaris 8's {/usr,}/bin/sh.
|
||||||
|
touch sub/conftst$i.h
|
||||||
|
done
|
||||||
|
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
||||||
|
|
||||||
|
case $depmode in
|
||||||
|
nosideeffect)
|
||||||
|
# after this tag, mechanisms are not by side-effect, so they'll
|
||||||
|
# only be used when explicitly requested
|
||||||
|
if test "x$enable_dependency_tracking" = xyes; then
|
||||||
|
continue
|
||||||
|
else
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
none) break ;;
|
||||||
|
esac
|
||||||
|
# We check with `-c' and `-o' for the sake of the "dashmstdout"
|
||||||
|
# mode. It turns out that the SunPro C++ compiler does not properly
|
||||||
|
# handle `-M -o', and we need to detect this.
|
||||||
|
if depmode=$depmode \
|
||||||
|
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
|
||||||
|
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
||||||
|
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
|
||||||
|
>/dev/null 2>conftest.err &&
|
||||||
|
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
||||||
|
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
|
||||||
|
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
||||||
|
# icc doesn't choke on unknown options, it will just issue warnings
|
||||||
|
# or remarks (even with -Werror). So we grep stderr for any message
|
||||||
|
# that says an option was ignored or not supported.
|
||||||
|
# When given -MP, icc 7.0 and 7.1 complain thusly:
|
||||||
|
# icc: Command line warning: ignoring option '-M'; no argument required
|
||||||
|
# The diagnosis changed in icc 8.0:
|
||||||
|
# icc: Command line remark: option '-MP' not supported
|
||||||
|
if (grep 'ignoring option' conftest.err ||
|
||||||
|
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
|
||||||
|
am_cv_$1_dependencies_compiler_type=$depmode
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
cd ..
|
||||||
|
rm -rf conftest.dir
|
||||||
|
else
|
||||||
|
am_cv_$1_dependencies_compiler_type=none
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
|
||||||
|
AM_CONDITIONAL([am__fastdep$1], [
|
||||||
|
test "x$enable_dependency_tracking" != xno \
|
||||||
|
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
|
# AM_SET_DEPDIR
|
||||||
|
# -------------
|
||||||
|
# Choose a directory name for dependency files.
|
||||||
|
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
|
||||||
|
AC_DEFUN([AM_SET_DEPDIR],
|
||||||
|
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
|
||||||
|
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
|
# AM_DEP_TRACK
|
||||||
|
# ------------
|
||||||
|
AC_DEFUN([AM_DEP_TRACK],
|
||||||
|
[AC_ARG_ENABLE(dependency-tracking,
|
||||||
|
[ --disable-dependency-tracking speeds up one-time build
|
||||||
|
--enable-dependency-tracking do not reject slow dependency extractors])
|
||||||
|
if test "x$enable_dependency_tracking" != xno; then
|
||||||
|
am_depcomp="$ac_aux_dir/depcomp"
|
||||||
|
AMDEPBACKSLASH='\'
|
||||||
|
fi
|
||||||
|
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
|
||||||
|
AC_SUBST([AMDEPBACKSLASH])
|
||||||
|
])
|
||||||
|
|
||||||
|
# Generate code to set up dependency tracking. -*- Autoconf -*-
|
||||||
|
|
||||||
|
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
|
||||||
|
|
||||||
|
# This program is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
# any later version.
|
||||||
|
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
||||||
|
# 02111-1307, USA.
|
||||||
|
|
||||||
|
#serial 2
|
||||||
|
|
||||||
|
# _AM_OUTPUT_DEPENDENCY_COMMANDS
|
||||||
|
# ------------------------------
|
||||||
|
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
|
||||||
|
[for mf in $CONFIG_FILES; do
|
||||||
|
# Strip MF so we end up with the name of the file.
|
||||||
|
mf=`echo "$mf" | sed -e 's/:.*$//'`
|
||||||
|
# Check whether this is an Automake generated Makefile or not.
|
||||||
|
# We used to match only the files named `Makefile.in', but
|
||||||
|
# some people rename them; so instead we look at the file content.
|
||||||
|
# Grep'ing the first line is not enough: some people post-process
|
||||||
|
# each Makefile.in and add a new line on top of each file to say so.
|
||||||
|
# So let's grep whole file.
|
||||||
|
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
|
||||||
|
dirpart=`AS_DIRNAME("$mf")`
|
||||||
|
else
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
|
||||||
|
# Extract the definition of DEP_FILES from the Makefile without
|
||||||
|
# running `make'.
|
||||||
|
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
|
||||||
|
test -z "$DEPDIR" && continue
|
||||||
|
# When using ansi2knr, U may be empty or an underscore; expand it
|
||||||
|
U=`sed -n 's/^U = //p' < "$mf"`
|
||||||
|
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
|
||||||
|
# We invoke sed twice because it is the simplest approach to
|
||||||
|
# changing $(DEPDIR) to its actual value in the expansion.
|
||||||
|
for file in `sed -n '
|
||||||
|
/^DEP_FILES = .*\\\\$/ {
|
||||||
|
s/^DEP_FILES = //
|
||||||
|
:loop
|
||||||
|
s/\\\\$//
|
||||||
|
p
|
||||||
|
n
|
||||||
|
/\\\\$/ b loop
|
||||||
|
p
|
||||||
|
}
|
||||||
|
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
|
||||||
|
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
|
||||||
|
# Make sure the directory exists.
|
||||||
|
test -f "$dirpart/$file" && continue
|
||||||
|
fdir=`AS_DIRNAME(["$file"])`
|
||||||
|
AS_MKDIR_P([$dirpart/$fdir])
|
||||||
|
# echo "creating $dirpart/$file"
|
||||||
|
echo '# dummy' > "$dirpart/$file"
|
||||||
|
done
|
||||||
|
done
|
||||||
|
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
|
||||||
|
|
||||||
|
|
||||||
|
# AM_OUTPUT_DEPENDENCY_COMMANDS
|
||||||
|
# -----------------------------
|
||||||
|
# This macro should only be invoked once -- use via AC_REQUIRE.
|
||||||
|
#
|
||||||
|
# This code is only required when automatic dependency tracking
|
||||||
|
# is enabled. FIXME. This creates each `.P' file that we will
|
||||||
|
# need in order to bootstrap the dependency handling code.
|
||||||
|
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
|
||||||
|
[AC_CONFIG_COMMANDS([depfiles],
|
||||||
|
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
|
||||||
|
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
|
||||||
|
])
|
||||||
|
|
||||||
|
# Do all the work for Automake. -*- Autoconf -*-
|
||||||
|
|
||||||
|
# This macro actually does too much some checks are only needed if
|
||||||
|
# your package does certain things. But this isn't really a big deal.
|
||||||
|
|
||||||
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
|
||||||
|
# Free Software Foundation, Inc.
|
||||||
|
|
||||||
|
# This program is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
# any later version.
|
||||||
|
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
||||||
|
# 02111-1307, USA.
|
||||||
|
|
||||||
|
# serial 11
|
||||||
|
|
||||||
|
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
|
||||||
|
# AM_INIT_AUTOMAKE([OPTIONS])
|
||||||
|
# -----------------------------------------------
|
||||||
|
# The call with PACKAGE and VERSION arguments is the old style
|
||||||
|
# call (pre autoconf-2.50), which is being phased out. PACKAGE
|
||||||
|
# and VERSION should now be passed to AC_INIT and removed from
|
||||||
|
# the call to AM_INIT_AUTOMAKE.
|
||||||
|
# We support both call styles for the transition. After
|
||||||
|
# the next Automake release, Autoconf can make the AC_INIT
|
||||||
|
# arguments mandatory, and then we can depend on a new Autoconf
|
||||||
|
# release and drop the old call support.
|
||||||
|
AC_DEFUN([AM_INIT_AUTOMAKE],
|
||||||
|
[AC_PREREQ([2.58])dnl
|
||||||
|
dnl Autoconf wants to disallow AM_ names. We explicitly allow
|
||||||
|
dnl the ones we care about.
|
||||||
|
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
|
||||||
|
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
|
||||||
|
AC_REQUIRE([AC_PROG_INSTALL])dnl
|
||||||
|
# test to see if srcdir already configured
|
||||||
|
if test "`cd $srcdir && pwd`" != "`pwd`" &&
|
||||||
|
test -f $srcdir/config.status; then
|
||||||
|
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
|
||||||
|
fi
|
||||||
|
|
||||||
|
# test whether we have cygpath
|
||||||
|
if test -z "$CYGPATH_W"; then
|
||||||
|
if (cygpath --version) >/dev/null 2>/dev/null; then
|
||||||
|
CYGPATH_W='cygpath -w'
|
||||||
|
else
|
||||||
|
CYGPATH_W=echo
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
AC_SUBST([CYGPATH_W])
|
||||||
|
|
||||||
|
# Define the identity of the package.
|
||||||
|
dnl Distinguish between old-style and new-style calls.
|
||||||
|
m4_ifval([$2],
|
||||||
|
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
|
||||||
|
AC_SUBST([PACKAGE], [$1])dnl
|
||||||
|
AC_SUBST([VERSION], [$2])],
|
||||||
|
[_AM_SET_OPTIONS([$1])dnl
|
||||||
|
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
|
||||||
|
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
|
||||||
|
|
||||||
|
_AM_IF_OPTION([no-define],,
|
||||||
|
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
|
||||||
|
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
|
||||||
|
|
||||||
|
# Some tools Automake needs.
|
||||||
|
AC_REQUIRE([AM_SANITY_CHECK])dnl
|
||||||
|
AC_REQUIRE([AC_ARG_PROGRAM])dnl
|
||||||
|
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
|
||||||
|
AM_MISSING_PROG(AUTOCONF, autoconf)
|
||||||
|
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
|
||||||
|
AM_MISSING_PROG(AUTOHEADER, autoheader)
|
||||||
|
AM_MISSING_PROG(MAKEINFO, makeinfo)
|
||||||
|
AM_MISSING_PROG(AMTAR, tar)
|
||||||
|
AM_PROG_INSTALL_SH
|
||||||
|
AM_PROG_INSTALL_STRIP
|
||||||
|
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
|
||||||
|
# We need awk for the "check" target. The system "awk" is bad on
|
||||||
|
# some platforms.
|
||||||
|
AC_REQUIRE([AC_PROG_AWK])dnl
|
||||||
|
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
|
||||||
|
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
|
||||||
|
|
||||||
|
_AM_IF_OPTION([no-dependencies],,
|
||||||
|
[AC_PROVIDE_IFELSE([AC_PROG_CC],
|
||||||
|
[_AM_DEPENDENCIES(CC)],
|
||||||
|
[define([AC_PROG_CC],
|
||||||
|
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
|
||||||
|
AC_PROVIDE_IFELSE([AC_PROG_CXX],
|
||||||
|
[_AM_DEPENDENCIES(CXX)],
|
||||||
|
[define([AC_PROG_CXX],
|
||||||
|
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
|
||||||
|
])
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
|
# When config.status generates a header, we must update the stamp-h file.
|
||||||
|
# This file resides in the same directory as the config header
|
||||||
|
# that is generated. The stamp files are numbered to have different names.
|
||||||
|
|
||||||
|
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
|
||||||
|
# loop where config.status creates the headers, so we can generate
|
||||||
|
# our stamp files there.
|
||||||
|
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
|
||||||
|
[# Compute $1's index in $config_headers.
|
||||||
|
_am_stamp_count=1
|
||||||
|
for _am_header in $config_headers :; do
|
||||||
|
case $_am_header in
|
||||||
|
$1 | $1:* )
|
||||||
|
break ;;
|
||||||
|
* )
|
||||||
|
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
|
||||||
|
|
||||||
|
# AM_PROG_INSTALL_SH
|
||||||
|
# ------------------
|
||||||
|
# Define $install_sh.
|
||||||
|
|
||||||
|
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
|
||||||
|
|
||||||
|
# This program is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
# any later version.
|
||||||
|
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
||||||
|
# 02111-1307, USA.
|
||||||
|
|
||||||
|
AC_DEFUN([AM_PROG_INSTALL_SH],
|
||||||
|
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
||||||
|
install_sh=${install_sh-"$am_aux_dir/install-sh"}
|
||||||
|
AC_SUBST(install_sh)])
|
||||||
|
|
||||||
|
# -*- Autoconf -*-
|
||||||
|
# Copyright (C) 2003 Free Software Foundation, Inc.
|
||||||
|
|
||||||
|
# This program is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
# any later version.
|
||||||
|
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
||||||
|
# 02111-1307, USA.
|
||||||
|
|
||||||
|
# serial 1
|
||||||
|
|
||||||
|
# Check whether the underlying file-system supports filenames
|
||||||
|
# with a leading dot. For instance MS-DOS doesn't.
|
||||||
|
AC_DEFUN([AM_SET_LEADING_DOT],
|
||||||
|
[rm -rf .tst 2>/dev/null
|
||||||
|
mkdir .tst 2>/dev/null
|
||||||
|
if test -d .tst; then
|
||||||
|
am__leading_dot=.
|
||||||
|
else
|
||||||
|
am__leading_dot=_
|
||||||
|
fi
|
||||||
|
rmdir .tst 2>/dev/null
|
||||||
|
AC_SUBST([am__leading_dot])])
|
||||||
|
|
||||||
|
# Check to see how 'make' treats includes. -*- Autoconf -*-
|
||||||
|
|
||||||
|
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
|
||||||
|
|
||||||
|
# This program is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
# any later version.
|
||||||
|
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
||||||
|
# 02111-1307, USA.
|
||||||
|
|
||||||
|
# serial 2
|
||||||
|
|
||||||
|
# AM_MAKE_INCLUDE()
|
||||||
|
# -----------------
|
||||||
|
# Check to see how make treats includes.
|
||||||
|
AC_DEFUN([AM_MAKE_INCLUDE],
|
||||||
|
[am_make=${MAKE-make}
|
||||||
|
cat > confinc << 'END'
|
||||||
|
am__doit:
|
||||||
|
@echo done
|
||||||
|
.PHONY: am__doit
|
||||||
|
END
|
||||||
|
# If we don't find an include directive, just comment out the code.
|
||||||
|
AC_MSG_CHECKING([for style of include used by $am_make])
|
||||||
|
am__include="#"
|
||||||
|
am__quote=
|
||||||
|
_am_result=none
|
||||||
|
# First try GNU make style include.
|
||||||
|
echo "include confinc" > confmf
|
||||||
|
# We grep out `Entering directory' and `Leaving directory'
|
||||||
|
# messages which can occur if `w' ends up in MAKEFLAGS.
|
||||||
|
# In particular we don't look at `^make:' because GNU make might
|
||||||
|
# be invoked under some other name (usually "gmake"), in which
|
||||||
|
# case it prints its new name instead of `make'.
|
||||||
|
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
|
||||||
|
am__include=include
|
||||||
|
am__quote=
|
||||||
|
_am_result=GNU
|
||||||
|
fi
|
||||||
|
# Now try BSD make style include.
|
||||||
|
if test "$am__include" = "#"; then
|
||||||
|
echo '.include "confinc"' > confmf
|
||||||
|
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
|
||||||
|
am__include=.include
|
||||||
|
am__quote="\""
|
||||||
|
_am_result=BSD
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
AC_SUBST([am__include])
|
||||||
|
AC_SUBST([am__quote])
|
||||||
|
AC_MSG_RESULT([$_am_result])
|
||||||
|
rm -f confinc confmf
|
||||||
|
])
|
||||||
|
|
||||||
|
# -*- Autoconf -*-
|
||||||
|
|
||||||
|
|
||||||
|
# Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
|
||||||
|
|
||||||
|
# This program is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
# any later version.
|
||||||
|
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
||||||
|
# 02111-1307, USA.
|
||||||
|
|
||||||
|
# serial 3
|
||||||
|
|
||||||
|
# AM_MISSING_PROG(NAME, PROGRAM)
|
||||||
|
# ------------------------------
|
||||||
|
AC_DEFUN([AM_MISSING_PROG],
|
||||||
|
[AC_REQUIRE([AM_MISSING_HAS_RUN])
|
||||||
|
$1=${$1-"${am_missing_run}$2"}
|
||||||
|
AC_SUBST($1)])
|
||||||
|
|
||||||
|
|
||||||
|
# AM_MISSING_HAS_RUN
|
||||||
|
# ------------------
|
||||||
|
# Define MISSING if not defined so far and test if it supports --run.
|
||||||
|
# If it does, set am_missing_run to use it, otherwise, to nothing.
|
||||||
|
AC_DEFUN([AM_MISSING_HAS_RUN],
|
||||||
|
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
||||||
|
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
|
||||||
|
# Use eval to expand $SHELL
|
||||||
|
if eval "$MISSING --run true"; then
|
||||||
|
am_missing_run="$MISSING --run "
|
||||||
|
else
|
||||||
|
am_missing_run=
|
||||||
|
AC_MSG_WARN([`missing' script is too old or missing])
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
|
# AM_PROG_MKDIR_P
|
||||||
|
# ---------------
|
||||||
|
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
|
||||||
|
|
||||||
|
# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
|
||||||
|
|
||||||
|
# This program is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
# any later version.
|
||||||
|
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
||||||
|
# 02111-1307, USA.
|
||||||
|
|
||||||
|
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
|
||||||
|
# created by `make install' are always world readable, even if the
|
||||||
|
# installer happens to have an overly restrictive umask (e.g. 077).
|
||||||
|
# This was a mistake. There are at least two reasons why we must not
|
||||||
|
# use `-m 0755':
|
||||||
|
# - it causes special bits like SGID to be ignored,
|
||||||
|
# - it may be too restrictive (some setups expect 775 directories).
|
||||||
|
#
|
||||||
|
# Do not use -m 0755 and let people choose whatever they expect by
|
||||||
|
# setting umask.
|
||||||
|
#
|
||||||
|
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
|
||||||
|
# Some implementations (such as Solaris 8's) are not thread-safe: if a
|
||||||
|
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
|
||||||
|
# concurrently, both version can detect that a/ is missing, but only
|
||||||
|
# one can create it and the other will error out. Consequently we
|
||||||
|
# restrict ourselves to GNU make (using the --version option ensures
|
||||||
|
# this.)
|
||||||
|
AC_DEFUN([AM_PROG_MKDIR_P],
|
||||||
|
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
|
||||||
|
# Keeping the `.' argument allows $(mkdir_p) to be used without
|
||||||
|
# argument. Indeed, we sometimes output rules like
|
||||||
|
# $(mkdir_p) $(somedir)
|
||||||
|
# where $(somedir) is conditionally defined.
|
||||||
|
# (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
|
||||||
|
# expensive solution, as it forces Make to start a sub-shell.)
|
||||||
|
mkdir_p='mkdir -p -- .'
|
||||||
|
else
|
||||||
|
# On NextStep and OpenStep, the `mkdir' command does not
|
||||||
|
# recognize any option. It will interpret all options as
|
||||||
|
# directories to create, and then abort because `.' already
|
||||||
|
# exists.
|
||||||
|
for d in ./-p ./--version;
|
||||||
|
do
|
||||||
|
test -d $d && rmdir $d
|
||||||
|
done
|
||||||
|
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
|
||||||
|
if test -f "$ac_aux_dir/mkinstalldirs"; then
|
||||||
|
mkdir_p='$(mkinstalldirs)'
|
||||||
|
else
|
||||||
|
mkdir_p='$(install_sh) -d'
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
AC_SUBST([mkdir_p])])
|
||||||
|
|
||||||
|
# Helper functions for option handling. -*- Autoconf -*-
|
||||||
|
|
||||||
|
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
|
||||||
|
|
||||||
|
# This program is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
# any later version.
|
||||||
|
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
||||||
|
# 02111-1307, USA.
|
||||||
|
|
||||||
|
# serial 2
|
||||||
|
|
||||||
|
# _AM_MANGLE_OPTION(NAME)
|
||||||
|
# -----------------------
|
||||||
|
AC_DEFUN([_AM_MANGLE_OPTION],
|
||||||
|
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
|
||||||
|
|
||||||
|
# _AM_SET_OPTION(NAME)
|
||||||
|
# ------------------------------
|
||||||
|
# Set option NAME. Presently that only means defining a flag for this option.
|
||||||
|
AC_DEFUN([_AM_SET_OPTION],
|
||||||
|
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
|
||||||
|
|
||||||
|
# _AM_SET_OPTIONS(OPTIONS)
|
||||||
|
# ----------------------------------
|
||||||
|
# OPTIONS is a space-separated list of Automake options.
|
||||||
|
AC_DEFUN([_AM_SET_OPTIONS],
|
||||||
|
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
|
||||||
|
|
||||||
|
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
|
||||||
|
# -------------------------------------------
|
||||||
|
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
|
||||||
|
AC_DEFUN([_AM_IF_OPTION],
|
||||||
|
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
|
||||||
|
|
||||||
|
#
|
||||||
|
# Check to make sure that the build environment is sane.
|
||||||
|
#
|
||||||
|
|
||||||
|
# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
|
||||||
|
|
||||||
|
# This program is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
# any later version.
|
||||||
|
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
||||||
|
# 02111-1307, USA.
|
||||||
|
|
||||||
|
# serial 3
|
||||||
|
|
||||||
|
# AM_SANITY_CHECK
|
||||||
|
# ---------------
|
||||||
|
AC_DEFUN([AM_SANITY_CHECK],
|
||||||
|
[AC_MSG_CHECKING([whether build environment is sane])
|
||||||
|
# Just in case
|
||||||
|
sleep 1
|
||||||
|
echo timestamp > conftest.file
|
||||||
|
# Do `set' in a subshell so we don't clobber the current shell's
|
||||||
|
# arguments. Must try -L first in case configure is actually a
|
||||||
|
# symlink; some systems play weird games with the mod time of symlinks
|
||||||
|
# (eg FreeBSD returns the mod time of the symlink's containing
|
||||||
|
# directory).
|
||||||
|
if (
|
||||||
|
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
|
||||||
|
if test "$[*]" = "X"; then
|
||||||
|
# -L didn't work.
|
||||||
|
set X `ls -t $srcdir/configure conftest.file`
|
||||||
|
fi
|
||||||
|
rm -f conftest.file
|
||||||
|
if test "$[*]" != "X $srcdir/configure conftest.file" \
|
||||||
|
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
|
||||||
|
|
||||||
|
# If neither matched, then we have a broken ls. This can happen
|
||||||
|
# if, for instance, CONFIG_SHELL is bash and it inherits a
|
||||||
|
# broken ls alias from the environment. This has actually
|
||||||
|
# happened. Such a system could not be considered "sane".
|
||||||
|
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
|
||||||
|
alias in your environment])
|
||||||
|
fi
|
||||||
|
|
||||||
|
test "$[2]" = conftest.file
|
||||||
|
)
|
||||||
|
then
|
||||||
|
# Ok.
|
||||||
|
:
|
||||||
|
else
|
||||||
|
AC_MSG_ERROR([newly created file is older than distributed files!
|
||||||
|
Check your system clock])
|
||||||
|
fi
|
||||||
|
AC_MSG_RESULT(yes)])
|
||||||
|
|
||||||
|
# AM_PROG_INSTALL_STRIP
|
||||||
|
|
||||||
|
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
|
||||||
|
|
||||||
|
# This program is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
# any later version.
|
||||||
|
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
||||||
|
# 02111-1307, USA.
|
||||||
|
|
||||||
|
# One issue with vendor `install' (even GNU) is that you can't
|
||||||
|
# specify the program used to strip binaries. This is especially
|
||||||
|
# annoying in cross-compiling environments, where the build's strip
|
||||||
|
# is unlikely to handle the host's binaries.
|
||||||
|
# Fortunately install-sh will honor a STRIPPROG variable, so we
|
||||||
|
# always use install-sh in `make install-strip', and initialize
|
||||||
|
# STRIPPROG with the value of the STRIP variable (set by the user).
|
||||||
|
AC_DEFUN([AM_PROG_INSTALL_STRIP],
|
||||||
|
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
|
||||||
|
# Installed binaries are usually stripped using `strip' when the user
|
||||||
|
# run `make install-strip'. However `strip' might not be the right
|
||||||
|
# tool to use in cross-compilation environments, therefore Automake
|
||||||
|
# will honor the `STRIP' environment variable to overrule this program.
|
||||||
|
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
|
||||||
|
if test "$cross_compiling" != no; then
|
||||||
|
AC_CHECK_TOOL([STRIP], [strip], :)
|
||||||
|
fi
|
||||||
|
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
|
||||||
|
AC_SUBST([INSTALL_STRIP_PROGRAM])])
|
||||||
|
|
1463
config.guess
vendored
Executable file
1463
config.guess
vendored
Executable file
File diff suppressed because it is too large
Load Diff
104
config.h
Normal file
104
config.h
Normal file
@ -0,0 +1,104 @@
|
|||||||
|
/* config.h. Generated by configure. */
|
||||||
|
/* config.h.in. Generated from configure.ac by autoheader. */
|
||||||
|
|
||||||
|
/* the platform we are building for */
|
||||||
|
#define ARCHOS "(linux-gnu running on x86_64)"
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <arpa/inet.h> header file. */
|
||||||
|
#define HAVE_ARPA_INET_H 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <fcntl.h> header file. */
|
||||||
|
#define HAVE_FCNTL_H 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `gethostbyname' function. */
|
||||||
|
#define HAVE_GETHOSTBYNAME 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `inet_ntoa' function. */
|
||||||
|
#define HAVE_INET_NTOA 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||||
|
#define HAVE_INTTYPES_H 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <memory.h> header file. */
|
||||||
|
#define HAVE_MEMORY_H 1
|
||||||
|
|
||||||
|
/* Define if you have Motif widgets. */
|
||||||
|
#define HAVE_MOTIF 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <netdb.h> header file. */
|
||||||
|
#define HAVE_NETDB_H 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <netinet/in.h> header file. */
|
||||||
|
#define HAVE_NETINET_IN_H 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `socket' function. */
|
||||||
|
#define HAVE_SOCKET 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <stdint.h> header file. */
|
||||||
|
#define HAVE_STDINT_H 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <stdlib.h> header file. */
|
||||||
|
#define HAVE_STDLIB_H 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <strings.h> header file. */
|
||||||
|
#define HAVE_STRINGS_H 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <string.h> header file. */
|
||||||
|
#define HAVE_STRING_H 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `strstr' function. */
|
||||||
|
#define HAVE_STRSTR 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <sys/socket.h> header file. */
|
||||||
|
#define HAVE_SYS_SOCKET_H 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <sys/stat.h> header file. */
|
||||||
|
#define HAVE_SYS_STAT_H 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <sys/time.h> header file. */
|
||||||
|
#define HAVE_SYS_TIME_H 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <sys/types.h> header file. */
|
||||||
|
#define HAVE_SYS_TYPES_H 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <unistd.h> header file. */
|
||||||
|
#define HAVE_UNISTD_H 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `XmStringCreateLocalized' function. */
|
||||||
|
#define HAVE_XMSTRINGCREATELOCALIZED 1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `XmStringGenerate' function. */
|
||||||
|
#define HAVE_XMSTRINGGENERATE 1
|
||||||
|
|
||||||
|
/* Name of package */
|
||||||
|
#define PACKAGE "nebula"
|
||||||
|
|
||||||
|
/* Define to the address where bug reports for this package should be sent. */
|
||||||
|
#define PACKAGE_BUGREPORT "rmottola@users.sourceforge.net"
|
||||||
|
|
||||||
|
/* Define to the full name of this package. */
|
||||||
|
#define PACKAGE_NAME "nebula"
|
||||||
|
|
||||||
|
/* Define to the full name and version of this package. */
|
||||||
|
#define PACKAGE_STRING "nebula 0.5"
|
||||||
|
|
||||||
|
/* Define to the one symbol short name of this package. */
|
||||||
|
#define PACKAGE_TARNAME "nebula"
|
||||||
|
|
||||||
|
/* Define to the version of this package. */
|
||||||
|
#define PACKAGE_VERSION "0.5"
|
||||||
|
|
||||||
|
/* Define as the return type of signal handlers (`int' or `void'). */
|
||||||
|
#define RETSIGTYPE void
|
||||||
|
|
||||||
|
/* Define to 1 if you have the ANSI C header files. */
|
||||||
|
#define STDC_HEADERS 1
|
||||||
|
|
||||||
|
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
|
||||||
|
#define TIME_WITH_SYS_TIME 1
|
||||||
|
|
||||||
|
/* Version number of package */
|
||||||
|
#define VERSION "0.5"
|
||||||
|
|
||||||
|
/* Define to 1 if the X Window System is missing or not being used. */
|
||||||
|
/* #undef X_DISPLAY_MISSING */
|
103
config.h.in
Normal file
103
config.h.in
Normal file
@ -0,0 +1,103 @@
|
|||||||
|
/* config.h.in. Generated from configure.ac by autoheader. */
|
||||||
|
|
||||||
|
/* the platform we are building for */
|
||||||
|
#undef ARCHOS
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <arpa/inet.h> header file. */
|
||||||
|
#undef HAVE_ARPA_INET_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <fcntl.h> header file. */
|
||||||
|
#undef HAVE_FCNTL_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `gethostbyname' function. */
|
||||||
|
#undef HAVE_GETHOSTBYNAME
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `inet_ntoa' function. */
|
||||||
|
#undef HAVE_INET_NTOA
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||||
|
#undef HAVE_INTTYPES_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <memory.h> header file. */
|
||||||
|
#undef HAVE_MEMORY_H
|
||||||
|
|
||||||
|
/* Define if you have Motif widgets. */
|
||||||
|
#undef HAVE_MOTIF
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <netdb.h> header file. */
|
||||||
|
#undef HAVE_NETDB_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <netinet/in.h> header file. */
|
||||||
|
#undef HAVE_NETINET_IN_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `socket' function. */
|
||||||
|
#undef HAVE_SOCKET
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <stdint.h> header file. */
|
||||||
|
#undef HAVE_STDINT_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <stdlib.h> header file. */
|
||||||
|
#undef HAVE_STDLIB_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <strings.h> header file. */
|
||||||
|
#undef HAVE_STRINGS_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <string.h> header file. */
|
||||||
|
#undef HAVE_STRING_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `strstr' function. */
|
||||||
|
#undef HAVE_STRSTR
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <sys/socket.h> header file. */
|
||||||
|
#undef HAVE_SYS_SOCKET_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <sys/stat.h> header file. */
|
||||||
|
#undef HAVE_SYS_STAT_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <sys/time.h> header file. */
|
||||||
|
#undef HAVE_SYS_TIME_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <sys/types.h> header file. */
|
||||||
|
#undef HAVE_SYS_TYPES_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <unistd.h> header file. */
|
||||||
|
#undef HAVE_UNISTD_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `XmStringCreateLocalized' function. */
|
||||||
|
#undef HAVE_XMSTRINGCREATELOCALIZED
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `XmStringGenerate' function. */
|
||||||
|
#undef HAVE_XMSTRINGGENERATE
|
||||||
|
|
||||||
|
/* Name of package */
|
||||||
|
#undef PACKAGE
|
||||||
|
|
||||||
|
/* Define to the address where bug reports for this package should be sent. */
|
||||||
|
#undef PACKAGE_BUGREPORT
|
||||||
|
|
||||||
|
/* Define to the full name of this package. */
|
||||||
|
#undef PACKAGE_NAME
|
||||||
|
|
||||||
|
/* Define to the full name and version of this package. */
|
||||||
|
#undef PACKAGE_STRING
|
||||||
|
|
||||||
|
/* Define to the one symbol short name of this package. */
|
||||||
|
#undef PACKAGE_TARNAME
|
||||||
|
|
||||||
|
/* Define to the version of this package. */
|
||||||
|
#undef PACKAGE_VERSION
|
||||||
|
|
||||||
|
/* Define as the return type of signal handlers (`int' or `void'). */
|
||||||
|
#undef RETSIGTYPE
|
||||||
|
|
||||||
|
/* Define to 1 if you have the ANSI C header files. */
|
||||||
|
#undef STDC_HEADERS
|
||||||
|
|
||||||
|
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
|
||||||
|
#undef TIME_WITH_SYS_TIME
|
||||||
|
|
||||||
|
/* Version number of package */
|
||||||
|
#undef VERSION
|
||||||
|
|
||||||
|
/* Define to 1 if the X Window System is missing or not being used. */
|
||||||
|
#undef X_DISPLAY_MISSING
|
847
config.log
Normal file
847
config.log
Normal file
@ -0,0 +1,847 @@
|
|||||||
|
This file contains any messages produced by compilers while
|
||||||
|
running configure, to aid debugging if configure makes a mistake.
|
||||||
|
|
||||||
|
It was created by nebula configure 0.5, which was
|
||||||
|
generated by GNU Autoconf 2.59. Invocation command line was
|
||||||
|
|
||||||
|
$ ./configure CFLAGS=-pipe -D_GLIBCXX_ASSERTIONS -D_FORTIFY_SOURCE=2 -O2 -march=haswell -fno-asynchronous-unwind-tables -momit-leaf-frame-pointer -ftree-loop-vectorize -fstack-protector-strong --param ssp-buffer-size=4 -fstack-clash-protection -fPIE -fPIC -Wl,--hash-style=gnu -fno-plt -fomit-frame-pointer -fmodulo-sched -fno-expensive-optimizations -fira-loop-pressure -fno-sched-spec-load -fconserve-stack -fisolate-erroneous-paths-attribute -fdelete-null-pointer-checks -fisolate-erroneous-paths-dereference -Wall LDFLAGS=-Wl,-O2,-sort-common,-as-needed,-z,relro,-z,now --no-create --no-recursion
|
||||||
|
|
||||||
|
## --------- ##
|
||||||
|
## Platform. ##
|
||||||
|
## --------- ##
|
||||||
|
|
||||||
|
hostname = commandante
|
||||||
|
uname -m = x86_64
|
||||||
|
uname -r = 5.10.101-hardenedck-ck1
|
||||||
|
uname -s = Linux
|
||||||
|
uname -v = #8 SMP PREEMPT Sun Feb 20 20:44:54 AEST 2022
|
||||||
|
|
||||||
|
/usr/bin/uname -p = unknown
|
||||||
|
/bin/uname -X = unknown
|
||||||
|
|
||||||
|
/bin/arch = unknown
|
||||||
|
/usr/bin/arch -k = unknown
|
||||||
|
/usr/convex/getsysinfo = unknown
|
||||||
|
hostinfo = unknown
|
||||||
|
/bin/machine = unknown
|
||||||
|
/usr/bin/oslevel = unknown
|
||||||
|
/bin/universe = unknown
|
||||||
|
|
||||||
|
PATH: /usr/lib/sed-i/bin/
|
||||||
|
PATH: /bin/
|
||||||
|
PATH: /usr/plan9port/bin/
|
||||||
|
PATH: /usr/local/texlive/2022/bin/x86_64-linuxmusl/
|
||||||
|
|
||||||
|
|
||||||
|
## ----------- ##
|
||||||
|
## Core tests. ##
|
||||||
|
## ----------- ##
|
||||||
|
|
||||||
|
configure:1367: checking for a BSD-compatible install
|
||||||
|
configure:1422: result: /bin//install -c
|
||||||
|
configure:1433: checking whether build environment is sane
|
||||||
|
configure:1476: result: yes
|
||||||
|
configure:1533: checking for gawk
|
||||||
|
configure:1562: result: no
|
||||||
|
configure:1533: checking for mawk
|
||||||
|
configure:1562: result: no
|
||||||
|
configure:1533: checking for nawk
|
||||||
|
configure:1562: result: no
|
||||||
|
configure:1533: checking for awk
|
||||||
|
configure:1549: found /bin//awk
|
||||||
|
configure:1559: result: awk
|
||||||
|
configure:1569: checking whether make sets $(MAKE)
|
||||||
|
configure:1589: result: yes
|
||||||
|
configure:1762: checking build system type
|
||||||
|
configure:1780: result: x86_64-unknown-linux-gnu
|
||||||
|
configure:1841: checking for gcc
|
||||||
|
configure:1857: found /bin//gcc
|
||||||
|
configure:1867: result: gcc
|
||||||
|
configure:2111: checking for C compiler version
|
||||||
|
configure:2114: gcc --version </dev/null >&5
|
||||||
|
gcc (GCC) 11.2.0
|
||||||
|
Copyright (C) 2021 Free Software Foundation, Inc.
|
||||||
|
This is free software; see the source for copying conditions. There is NO
|
||||||
|
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
|
||||||
|
configure:2117: $? = 0
|
||||||
|
configure:2119: gcc -v </dev/null >&5
|
||||||
|
Using built-in specs.
|
||||||
|
COLLECT_GCC=gcc
|
||||||
|
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-musl/11.2.0/lto-wrapper
|
||||||
|
Target: x86_64-pc-linux-musl
|
||||||
|
Configured with: ../gcc/configure --prefix=/usr --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-multilib --disable-symvers --disable-libmpx --disable-libmudflap --disable-libsanitizer --disable-werror --disable-fixed-point --disable-libstdcxx-pch --disable-nls --enable-checking=release --enable-__cxa_atexit --enable-default-pie --enable-default-ssp --enable-shared --enable-host-shared --enable-threads --enable-tls --enable-languages=c,c++ --without-included-gettext --with-zstd=no --with-system-zlib --build=x86_64-pc-linux-musl --disable-bootstrap
|
||||||
|
Thread model: posix
|
||||||
|
Supported LTO compression algorithms: zlib
|
||||||
|
gcc version 11.2.0 (GCC)
|
||||||
|
configure:2122: $? = 0
|
||||||
|
configure:2124: gcc -V </dev/null >&5
|
||||||
|
gcc: error: unrecognized command-line option '-V'
|
||||||
|
gcc: fatal error: no input files
|
||||||
|
compilation terminated.
|
||||||
|
configure:2127: $? = 1
|
||||||
|
configure:2150: checking for C compiler default output file name
|
||||||
|
configure:2153: gcc -pipe -D_GLIBCXX_ASSERTIONS -D_FORTIFY_SOURCE=2 -O2 -march=haswell -fno-asynchronous-unwind-tables -momit-leaf-frame-pointer -ftree-loop-vectorize -fstack-protector-strong --param ssp-buffer-size=4 -fstack-clash-protection -fPIE -fPIC -Wl,--hash-style=gnu -fno-plt -fomit-frame-pointer -fmodulo-sched -fno-expensive-optimizations -fira-loop-pressure -fno-sched-spec-load -fconserve-stack -fisolate-erroneous-paths-attribute -fdelete-null-pointer-checks -fisolate-erroneous-paths-dereference -Wall -Wl,-O2,-sort-common,-as-needed,-z,relro,-z,now conftest.c >&5
|
||||||
|
configure:2156: $? = 0
|
||||||
|
configure:2202: result: a.out
|
||||||
|
configure:2207: checking whether the C compiler works
|
||||||
|
configure:2213: ./a.out
|
||||||
|
configure:2216: $? = 0
|
||||||
|
configure:2233: result: yes
|
||||||
|
configure:2240: checking whether we are cross compiling
|
||||||
|
configure:2242: result: no
|
||||||
|
configure:2245: checking for suffix of executables
|
||||||
|
configure:2247: gcc -o conftest -pipe -D_GLIBCXX_ASSERTIONS -D_FORTIFY_SOURCE=2 -O2 -march=haswell -fno-asynchronous-unwind-tables -momit-leaf-frame-pointer -ftree-loop-vectorize -fstack-protector-strong --param ssp-buffer-size=4 -fstack-clash-protection -fPIE -fPIC -Wl,--hash-style=gnu -fno-plt -fomit-frame-pointer -fmodulo-sched -fno-expensive-optimizations -fira-loop-pressure -fno-sched-spec-load -fconserve-stack -fisolate-erroneous-paths-attribute -fdelete-null-pointer-checks -fisolate-erroneous-paths-dereference -Wall -Wl,-O2,-sort-common,-as-needed,-z,relro,-z,now conftest.c >&5
|
||||||
|
configure:2250: $? = 0
|
||||||
|
configure:2275: result:
|
||||||
|
configure:2281: checking for suffix of object files
|
||||||
|
configure:2302: gcc -c -pipe -D_GLIBCXX_ASSERTIONS -D_FORTIFY_SOURCE=2 -O2 -march=haswell -fno-asynchronous-unwind-tables -momit-leaf-frame-pointer -ftree-loop-vectorize -fstack-protector-strong --param ssp-buffer-size=4 -fstack-clash-protection -fPIE -fPIC -Wl,--hash-style=gnu -fno-plt -fomit-frame-pointer -fmodulo-sched -fno-expensive-optimizations -fira-loop-pressure -fno-sched-spec-load -fconserve-stack -fisolate-erroneous-paths-attribute -fdelete-null-pointer-checks -fisolate-erroneous-paths-dereference -Wall conftest.c >&5
|
||||||
|
configure:2305: $? = 0
|
||||||
|
configure:2327: result: o
|
||||||
|
configure:2331: checking whether we are using the GNU C compiler
|
||||||
|
configure:2355: gcc -c -pipe -D_GLIBCXX_ASSERTIONS -D_FORTIFY_SOURCE=2 -O2 -march=haswell -fno-asynchronous-unwind-tables -momit-leaf-frame-pointer -ftree-loop-vectorize -fstack-protector-strong --param ssp-buffer-size=4 -fstack-clash-protection -fPIE -fPIC -Wl,--hash-style=gnu -fno-plt -fomit-frame-pointer -fmodulo-sched -fno-expensive-optimizations -fira-loop-pressure -fno-sched-spec-load -fconserve-stack -fisolate-erroneous-paths-attribute -fdelete-null-pointer-checks -fisolate-erroneous-paths-dereference -Wall conftest.c >&5
|
||||||
|
configure:2361: $? = 0
|
||||||
|
configure:2365: test -z
|
||||||
|
|| test ! -s conftest.err
|
||||||
|
configure:2368: $? = 0
|
||||||
|
configure:2371: test -s conftest.o
|
||||||
|
configure:2374: $? = 0
|
||||||
|
configure:2387: result: yes
|
||||||
|
configure:2393: checking whether gcc accepts -g
|
||||||
|
configure:2414: gcc -c -g conftest.c >&5
|
||||||
|
configure:2420: $? = 0
|
||||||
|
configure:2424: test -z
|
||||||
|
|| test ! -s conftest.err
|
||||||
|
configure:2427: $? = 0
|
||||||
|
configure:2430: test -s conftest.o
|
||||||
|
configure:2433: $? = 0
|
||||||
|
configure:2444: result: yes
|
||||||
|
configure:2461: checking for gcc option to accept ANSI C
|
||||||
|
configure:2531: gcc -c -pipe -D_GLIBCXX_ASSERTIONS -D_FORTIFY_SOURCE=2 -O2 -march=haswell -fno-asynchronous-unwind-tables -momit-leaf-frame-pointer -ftree-loop-vectorize -fstack-protector-strong --param ssp-buffer-size=4 -fstack-clash-protection -fPIE -fPIC -Wl,--hash-style=gnu -fno-plt -fomit-frame-pointer -fmodulo-sched -fno-expensive-optimizations -fira-loop-pressure -fno-sched-spec-load -fconserve-stack -fisolate-erroneous-paths-attribute -fdelete-null-pointer-checks -fisolate-erroneous-paths-dereference -Wall conftest.c >&5
|
||||||
|
configure:2537: $? = 0
|
||||||
|
configure:2541: test -z
|
||||||
|
|| test ! -s conftest.err
|
||||||
|
configure:2544: $? = 0
|
||||||
|
configure:2547: test -s conftest.o
|
||||||
|
configure:2550: $? = 0
|
||||||
|
configure:2568: result: none needed
|
||||||
|
configure:2586: gcc -c -pipe -D_GLIBCXX_ASSERTIONS -D_FORTIFY_SOURCE=2 -O2 -march=haswell -fno-asynchronous-unwind-tables -momit-leaf-frame-pointer -ftree-loop-vectorize -fstack-protector-strong --param ssp-buffer-size=4 -fstack-clash-protection -fPIE -fPIC -Wl,--hash-style=gnu -fno-plt -fomit-frame-pointer -fmodulo-sched -fno-expensive-optimizations -fira-loop-pressure -fno-sched-spec-load -fconserve-stack -fisolate-erroneous-paths-attribute -fdelete-null-pointer-checks -fisolate-erroneous-paths-dereference -Wall conftest.c >&5
|
||||||
|
conftest.c:2:3: error: unknown type name 'choke'
|
||||||
|
2 | choke me
|
||||||
|
| ^~~~~
|
||||||
|
conftest.c:2:3: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
|
||||||
|
configure:2592: $? = 1
|
||||||
|
configure: failed program was:
|
||||||
|
| #ifndef __cplusplus
|
||||||
|
| choke me
|
||||||
|
| #endif
|
||||||
|
configure:2736: checking for style of include used by make
|
||||||
|
configure:2764: result: GNU
|
||||||
|
configure:2792: checking dependency style of gcc
|
||||||
|
configure:2882: result: gcc3
|
||||||
|
configure:2921: checking how to run the C preprocessor
|
||||||
|
configure:2956: gcc -E conftest.c
|
||||||
|
configure:2962: $? = 0
|
||||||
|
configure:2994: gcc -E conftest.c
|
||||||
|
conftest.c:12:10: fatal error: ac_nonexistent.h: No such file or directory
|
||||||
|
12 | #include <ac_nonexistent.h>
|
||||||
|
| ^~~~~~~~~~~~~~~~~~
|
||||||
|
compilation terminated.
|
||||||
|
configure:3000: $? = 1
|
||||||
|
configure: failed program was:
|
||||||
|
| /* confdefs.h. */
|
||||||
|
|
|
||||||
|
| #define PACKAGE_NAME "nebula"
|
||||||
|
| #define PACKAGE_TARNAME "nebula"
|
||||||
|
| #define PACKAGE_VERSION "0.5"
|
||||||
|
| #define PACKAGE_STRING "nebula 0.5"
|
||||||
|
| #define PACKAGE_BUGREPORT "rmottola@users.sourceforge.net"
|
||||||
|
| #define PACKAGE "nebula"
|
||||||
|
| #define VERSION "0.5"
|
||||||
|
| #define ARCHOS "(linux-gnu running on x86_64)"
|
||||||
|
| /* end confdefs.h. */
|
||||||
|
| #include <ac_nonexistent.h>
|
||||||
|
configure:3039: result: gcc -E
|
||||||
|
configure:3063: gcc -E conftest.c
|
||||||
|
configure:3069: $? = 0
|
||||||
|
configure:3101: gcc -E conftest.c
|
||||||
|
conftest.c:12:10: fatal error: ac_nonexistent.h: No such file or directory
|
||||||
|
12 | #include <ac_nonexistent.h>
|
||||||
|
| ^~~~~~~~~~~~~~~~~~
|
||||||
|
compilation terminated.
|
||||||
|
configure:3107: $? = 1
|
||||||
|
configure: failed program was:
|
||||||
|
| /* confdefs.h. */
|
||||||
|
|
|
||||||
|
| #define PACKAGE_NAME "nebula"
|
||||||
|
| #define PACKAGE_TARNAME "nebula"
|
||||||
|
| #define PACKAGE_VERSION "0.5"
|
||||||
|
| #define PACKAGE_STRING "nebula 0.5"
|
||||||
|
| #define PACKAGE_BUGREPORT "rmottola@users.sourceforge.net"
|
||||||
|
| #define PACKAGE "nebula"
|
||||||
|
| #define VERSION "0.5"
|
||||||
|
| #define ARCHOS "(linux-gnu running on x86_64)"
|
||||||
|
| /* end confdefs.h. */
|
||||||
|
| #include <ac_nonexistent.h>
|
||||||
|
configure:3151: checking for X
|
||||||
|
configure:3256: gcc -E conftest.c
|
||||||
|
configure:3262: $? = 0
|
||||||
|
configure:3381: result: libraries /usr/lib64, headers
|
||||||
|
configure:3553: gcc -o conftest -pipe -D_GLIBCXX_ASSERTIONS -D_FORTIFY_SOURCE=2 -O2 -march=haswell -fno-asynchronous-unwind-tables -momit-leaf-frame-pointer -ftree-loop-vectorize -fstack-protector-strong --param ssp-buffer-size=4 -fstack-clash-protection -fPIE -fPIC -Wl,--hash-style=gnu -fno-plt -fomit-frame-pointer -fmodulo-sched -fno-expensive-optimizations -fira-loop-pressure -fno-sched-spec-load -fconserve-stack -fisolate-erroneous-paths-attribute -fdelete-null-pointer-checks -fisolate-erroneous-paths-dereference -Wall -Wl,-O2,-sort-common,-as-needed,-z,relro,-z,now conftest.c -L/usr/lib64 -lX11 >&5
|
||||||
|
configure:3559: $? = 0
|
||||||
|
configure:3563: test -z
|
||||||
|
|| test ! -s conftest.err
|
||||||
|
configure:3566: $? = 0
|
||||||
|
configure:3569: test -s conftest
|
||||||
|
configure:3572: $? = 0
|
||||||
|
configure:3730: checking for gethostbyname
|
||||||
|
configure:3787: gcc -o conftest -pipe -D_GLIBCXX_ASSERTIONS -D_FORTIFY_SOURCE=2 -O2 -march=haswell -fno-asynchronous-unwind-tables -momit-leaf-frame-pointer -ftree-loop-vectorize -fstack-protector-strong --param ssp-buffer-size=4 -fstack-clash-protection -fPIE -fPIC -Wl,--hash-style=gnu -fno-plt -fomit-frame-pointer -fmodulo-sched -fno-expensive-optimizations -fira-loop-pressure -fno-sched-spec-load -fconserve-stack -fisolate-erroneous-paths-attribute -fdelete-null-pointer-checks -fisolate-erroneous-paths-dereference -Wall -Wl,-O2,-sort-common,-as-needed,-z,relro,-z,now conftest.c >&5
|
||||||
|
configure:3793: $? = 0
|
||||||
|
configure:3797: test -z
|
||||||
|
|| test ! -s conftest.err
|
||||||
|
configure:3800: $? = 0
|
||||||
|
configure:3803: test -s conftest
|
||||||
|
configure:3806: $? = 0
|
||||||
|
configure:3818: result: yes
|
||||||
|
configure:3969: checking for connect
|
||||||
|
configure:4026: gcc -o conftest -pipe -D_GLIBCXX_ASSERTIONS -D_FORTIFY_SOURCE=2 -O2 -march=haswell -fno-asynchronous-unwind-tables -momit-leaf-frame-pointer -ftree-loop-vectorize -fstack-protector-strong --param ssp-buffer-size=4 -fstack-clash-protection -fPIE -fPIC -Wl,--hash-style=gnu -fno-plt -fomit-frame-pointer -fmodulo-sched -fno-expensive-optimizations -fira-loop-pressure -fno-sched-spec-load -fconserve-stack -fisolate-erroneous-paths-attribute -fdelete-null-pointer-checks -fisolate-erroneous-paths-dereference -Wall -Wl,-O2,-sort-common,-as-needed,-z,relro,-z,now conftest.c >&5
|
||||||
|
configure:4032: $? = 0
|
||||||
|
configure:4036: test -z
|
||||||
|
|| test ! -s conftest.err
|
||||||
|
configure:4039: $? = 0
|
||||||
|
configure:4042: test -s conftest
|
||||||
|
configure:4045: $? = 0
|
||||||
|
configure:4057: result: yes
|
||||||
|
configure:4132: checking for remove
|
||||||
|
configure:4189: gcc -o conftest -pipe -D_GLIBCXX_ASSERTIONS -D_FORTIFY_SOURCE=2 -O2 -march=haswell -fno-asynchronous-unwind-tables -momit-leaf-frame-pointer -ftree-loop-vectorize -fstack-protector-strong --param ssp-buffer-size=4 -fstack-clash-protection -fPIE -fPIC -Wl,--hash-style=gnu -fno-plt -fomit-frame-pointer -fmodulo-sched -fno-expensive-optimizations -fira-loop-pressure -fno-sched-spec-load -fconserve-stack -fisolate-erroneous-paths-attribute -fdelete-null-pointer-checks -fisolate-erroneous-paths-dereference -Wall -Wl,-O2,-sort-common,-as-needed,-z,relro,-z,now conftest.c >&5
|
||||||
|
configure:4195: $? = 0
|
||||||
|
configure:4199: test -z
|
||||||
|
|| test ! -s conftest.err
|
||||||
|
configure:4202: $? = 0
|
||||||
|
configure:4205: test -s conftest
|
||||||
|
configure:4208: $? = 0
|
||||||
|
configure:4220: result: yes
|
||||||
|
configure:4295: checking for shmat
|
||||||
|
configure:4352: gcc -o conftest -pipe -D_GLIBCXX_ASSERTIONS -D_FORTIFY_SOURCE=2 -O2 -march=haswell -fno-asynchronous-unwind-tables -momit-leaf-frame-pointer -ftree-loop-vectorize -fstack-protector-strong --param ssp-buffer-size=4 -fstack-clash-protection -fPIE -fPIC -Wl,--hash-style=gnu -fno-plt -fomit-frame-pointer -fmodulo-sched -fno-expensive-optimizations -fira-loop-pressure -fno-sched-spec-load -fconserve-stack -fisolate-erroneous-paths-attribute -fdelete-null-pointer-checks -fisolate-erroneous-paths-dereference -Wall -Wl,-O2,-sort-common,-as-needed,-z,relro,-z,now conftest.c >&5
|
||||||
|
configure:4358: $? = 0
|
||||||
|
configure:4362: test -z
|
||||||
|
|| test ! -s conftest.err
|
||||||
|
configure:4365: $? = 0
|
||||||
|
configure:4368: test -s conftest
|
||||||
|
configure:4371: $? = 0
|
||||||
|
configure:4383: result: yes
|
||||||
|
configure:4467: checking for IceConnectionNumber in -lICE
|
||||||
|
configure:4497: gcc -o conftest -pipe -D_GLIBCXX_ASSERTIONS -D_FORTIFY_SOURCE=2 -O2 -march=haswell -fno-asynchronous-unwind-tables -momit-leaf-frame-pointer -ftree-loop-vectorize -fstack-protector-strong --param ssp-buffer-size=4 -fstack-clash-protection -fPIE -fPIC -Wl,--hash-style=gnu -fno-plt -fomit-frame-pointer -fmodulo-sched -fno-expensive-optimizations -fira-loop-pressure -fno-sched-spec-load -fconserve-stack -fisolate-erroneous-paths-attribute -fdelete-null-pointer-checks -fisolate-erroneous-paths-dereference -Wall -Wl,-O2,-sort-common,-as-needed,-z,relro,-z,now -L/usr/lib64 conftest.c -lICE >&5
|
||||||
|
configure:4503: $? = 0
|
||||||
|
configure:4507: test -z
|
||||||
|
|| test ! -s conftest.err
|
||||||
|
configure:4510: $? = 0
|
||||||
|
configure:4513: test -s conftest
|
||||||
|
configure:4516: $? = 0
|
||||||
|
configure:4529: result: yes
|
||||||
|
configure:4564: checking for Motif
|
||||||
|
configure:4588: result: libraries in default path, headers in default path
|
||||||
|
configure:4595: checking for XOpenDisplay in -lX11
|
||||||
|
configure:4625: gcc -o conftest -pipe -D_GLIBCXX_ASSERTIONS -D_FORTIFY_SOURCE=2 -O2 -march=haswell -fno-asynchronous-unwind-tables -momit-leaf-frame-pointer -ftree-loop-vectorize -fstack-protector-strong --param ssp-buffer-size=4 -fstack-clash-protection -fPIE -fPIC -Wl,--hash-style=gnu -fno-plt -fomit-frame-pointer -fmodulo-sched -fno-expensive-optimizations -fira-loop-pressure -fno-sched-spec-load -fconserve-stack -fisolate-erroneous-paths-attribute -fdelete-null-pointer-checks -fisolate-erroneous-paths-dereference -Wall -Wl,-O2,-sort-common,-as-needed,-z,relro,-z,now -L/usr/lib64 conftest.c -lX11 -lSM -lICE >&5
|
||||||
|
configure:4631: $? = 0
|
||||||
|
configure:4635: test -z
|
||||||
|
|| test ! -s conftest.err
|
||||||
|
configure:4638: $? = 0
|
||||||
|
configure:4641: test -s conftest
|
||||||
|
configure:4644: $? = 0
|
||||||
|
configure:4657: result: yes
|
||||||
|
configure:4678: checking for XtToolkitInitialize in -lXt
|
||||||
|
configure:4708: gcc -o conftest -pipe -D_GLIBCXX_ASSERTIONS -D_FORTIFY_SOURCE=2 -O2 -march=haswell -fno-asynchronous-unwind-tables -momit-leaf-frame-pointer -ftree-loop-vectorize -fstack-protector-strong --param ssp-buffer-size=4 -fstack-clash-protection -fPIE -fPIC -Wl,--hash-style=gnu -fno-plt -fomit-frame-pointer -fmodulo-sched -fno-expensive-optimizations -fira-loop-pressure -fno-sched-spec-load -fconserve-stack -fisolate-erroneous-paths-attribute -fdelete-null-pointer-checks -fisolate-erroneous-paths-dereference -Wall -Wl,-O2,-sort-common,-as-needed,-z,relro,-z,now -L/usr/lib64 conftest.c -lXt -lSM -lICE -lX11 >&5
|
||||||
|
configure:4714: $? = 0
|
||||||
|
configure:4718: test -z
|
||||||
|
|| test ! -s conftest.err
|
||||||
|
configure:4721: $? = 0
|
||||||
|
configure:4724: test -s conftest
|
||||||
|
configure:4727: $? = 0
|
||||||
|
configure:4740: result: yes
|
||||||
|
configure:4776: checking for XmCreateOptionMenu in -lXm
|
||||||
|
configure:4806: gcc -o conftest -pipe -D_GLIBCXX_ASSERTIONS -D_FORTIFY_SOURCE=2 -O2 -march=haswell -fno-asynchronous-unwind-tables -momit-leaf-frame-pointer -ftree-loop-vectorize -fstack-protector-strong --param ssp-buffer-size=4 -fstack-clash-protection -fPIE -fPIC -Wl,--hash-style=gnu -fno-plt -fomit-frame-pointer -fmodulo-sched -fno-expensive-optimizations -fira-loop-pressure -fno-sched-spec-load -fconserve-stack -fisolate-erroneous-paths-attribute -fdelete-null-pointer-checks -fisolate-erroneous-paths-dereference -Wall -Wl,-O2,-sort-common,-as-needed,-z,relro,-z,now -L/usr/lib64 conftest.c -lXm -lXt -lSM -lICE -lX11 >&5
|
||||||
|
configure:4812: $? = 0
|
||||||
|
configure:4816: test -z
|
||||||
|
|| test ! -s conftest.err
|
||||||
|
configure:4819: $? = 0
|
||||||
|
configure:4822: test -s conftest
|
||||||
|
configure:4825: $? = 0
|
||||||
|
configure:4838: result: yes
|
||||||
|
configure:4863: checking for regcmp in -lPW
|
||||||
|
configure:4893: gcc -o conftest -pipe -D_GLIBCXX_ASSERTIONS -D_FORTIFY_SOURCE=2 -O2 -march=haswell -fno-asynchronous-unwind-tables -momit-leaf-frame-pointer -ftree-loop-vectorize -fstack-protector-strong --param ssp-buffer-size=4 -fstack-clash-protection -fPIE -fPIC -Wl,--hash-style=gnu -fno-plt -fomit-frame-pointer -fmodulo-sched -fno-expensive-optimizations -fira-loop-pressure -fno-sched-spec-load -fconserve-stack -fisolate-erroneous-paths-attribute -fdelete-null-pointer-checks -fisolate-erroneous-paths-dereference -Wall -Wl,-O2,-sort-common,-as-needed,-z,relro,-z,now -L/usr/lib64 conftest.c -lPW >&5
|
||||||
|
/bin/ld: cannot find -lPW: No such file or directory
|
||||||
|
collect2: error: ld returned 1 exit status
|
||||||
|
configure:4899: $? = 1
|
||||||
|
configure: failed program was:
|
||||||
|
| /* confdefs.h. */
|
||||||
|
|
|
||||||
|
| #define PACKAGE_NAME "nebula"
|
||||||
|
| #define PACKAGE_TARNAME "nebula"
|
||||||
|
| #define PACKAGE_VERSION "0.5"
|
||||||
|
| #define PACKAGE_STRING "nebula 0.5"
|
||||||
|
| #define PACKAGE_BUGREPORT "rmottola@users.sourceforge.net"
|
||||||
|
| #define PACKAGE "nebula"
|
||||||
|
| #define VERSION "0.5"
|
||||||
|
| #define ARCHOS "(linux-gnu running on x86_64)"
|
||||||
|
| #define HAVE_MOTIF 1
|
||||||
|
| /* end confdefs.h. */
|
||||||
|
|
|
||||||
|
| /* Override any gcc2 internal prototype to avoid an error. */
|
||||||
|
| #ifdef __cplusplus
|
||||||
|
| extern "C"
|
||||||
|
| #endif
|
||||||
|
| /* We use char because int might match the return type of a gcc2
|
||||||
|
| builtin and then its argument prototype would still apply. */
|
||||||
|
| char regcmp ();
|
||||||
|
| int
|
||||||
|
| main ()
|
||||||
|
| {
|
||||||
|
| regcmp ();
|
||||||
|
| ;
|
||||||
|
| return 0;
|
||||||
|
| }
|
||||||
|
configure:4925: result: no
|
||||||
|
configure:4938: checking for XmStringCreateLocalized
|
||||||
|
configure:4995: gcc -o conftest -pipe -D_GLIBCXX_ASSERTIONS -D_FORTIFY_SOURCE=2 -O2 -march=haswell -fno-asynchronous-unwind-tables -momit-leaf-frame-pointer -ftree-loop-vectorize -fstack-protector-strong --param ssp-buffer-size=4 -fstack-clash-protection -fPIE -fPIC -Wl,--hash-style=gnu -fno-plt -fomit-frame-pointer -fmodulo-sched -fno-expensive-optimizations -fira-loop-pressure -fno-sched-spec-load -fconserve-stack -fisolate-erroneous-paths-attribute -fdelete-null-pointer-checks -fisolate-erroneous-paths-dereference -Wall -Wl,-O2,-sort-common,-as-needed,-z,relro,-z,now -L/usr/lib64 conftest.c -lXm -lXt -lX11 >&5
|
||||||
|
configure:5001: $? = 0
|
||||||
|
configure:5005: test -z
|
||||||
|
|| test ! -s conftest.err
|
||||||
|
configure:5008: $? = 0
|
||||||
|
configure:5011: test -s conftest
|
||||||
|
configure:5014: $? = 0
|
||||||
|
configure:5026: result: yes
|
||||||
|
configure:5040: checking for XmStringGenerate
|
||||||
|
configure:5097: gcc -o conftest -pipe -D_GLIBCXX_ASSERTIONS -D_FORTIFY_SOURCE=2 -O2 -march=haswell -fno-asynchronous-unwind-tables -momit-leaf-frame-pointer -ftree-loop-vectorize -fstack-protector-strong --param ssp-buffer-size=4 -fstack-clash-protection -fPIE -fPIC -Wl,--hash-style=gnu -fno-plt -fomit-frame-pointer -fmodulo-sched -fno-expensive-optimizations -fira-loop-pressure -fno-sched-spec-load -fconserve-stack -fisolate-erroneous-paths-attribute -fdelete-null-pointer-checks -fisolate-erroneous-paths-dereference -Wall -Wl,-O2,-sort-common,-as-needed,-z,relro,-z,now -L/usr/lib64 conftest.c -lXm -lXt -lX11 >&5
|
||||||
|
configure:5103: $? = 0
|
||||||
|
configure:5107: test -z
|
||||||
|
|| test ! -s conftest.err
|
||||||
|
configure:5110: $? = 0
|
||||||
|
configure:5113: test -s conftest
|
||||||
|
configure:5116: $? = 0
|
||||||
|
configure:5128: result: yes
|
||||||
|
configure:5141: checking for SgCreateList in -lSgm
|
||||||
|
configure:5171: gcc -o conftest -pipe -D_GLIBCXX_ASSERTIONS -D_FORTIFY_SOURCE=2 -O2 -march=haswell -fno-asynchronous-unwind-tables -momit-leaf-frame-pointer -ftree-loop-vectorize -fstack-protector-strong --param ssp-buffer-size=4 -fstack-clash-protection -fPIE -fPIC -Wl,--hash-style=gnu -fno-plt -fomit-frame-pointer -fmodulo-sched -fno-expensive-optimizations -fira-loop-pressure -fno-sched-spec-load -fconserve-stack -fisolate-erroneous-paths-attribute -fdelete-null-pointer-checks -fisolate-erroneous-paths-dereference -Wall -Wl,-O2,-sort-common,-as-needed,-z,relro,-z,now -L/usr/lib64 conftest.c -lSgm >&5
|
||||||
|
/bin/ld: cannot find -lSgm: No such file or directory
|
||||||
|
collect2: error: ld returned 1 exit status
|
||||||
|
configure:5177: $? = 1
|
||||||
|
configure: failed program was:
|
||||||
|
| /* confdefs.h. */
|
||||||
|
|
|
||||||
|
| #define PACKAGE_NAME "nebula"
|
||||||
|
| #define PACKAGE_TARNAME "nebula"
|
||||||
|
| #define PACKAGE_VERSION "0.5"
|
||||||
|
| #define PACKAGE_STRING "nebula 0.5"
|
||||||
|
| #define PACKAGE_BUGREPORT "rmottola@users.sourceforge.net"
|
||||||
|
| #define PACKAGE "nebula"
|
||||||
|
| #define VERSION "0.5"
|
||||||
|
| #define ARCHOS "(linux-gnu running on x86_64)"
|
||||||
|
| #define HAVE_MOTIF 1
|
||||||
|
| #define HAVE_XMSTRINGCREATELOCALIZED 1
|
||||||
|
| #define HAVE_XMSTRINGGENERATE 1
|
||||||
|
| /* end confdefs.h. */
|
||||||
|
|
|
||||||
|
| /* Override any gcc2 internal prototype to avoid an error. */
|
||||||
|
| #ifdef __cplusplus
|
||||||
|
| extern "C"
|
||||||
|
| #endif
|
||||||
|
| /* We use char because int might match the return type of a gcc2
|
||||||
|
| builtin and then its argument prototype would still apply. */
|
||||||
|
| char SgCreateList ();
|
||||||
|
| int
|
||||||
|
| main ()
|
||||||
|
| {
|
||||||
|
| SgCreateList ();
|
||||||
|
| ;
|
||||||
|
| return 0;
|
||||||
|
| }
|
||||||
|
configure:5203: result: no
|
||||||
|
configure:5211: checking for egrep
|
||||||
|
configure:5221: result: grep -E
|
||||||
|
configure:5226: checking for ANSI C header files
|
||||||
|
configure:5251: gcc -c -pipe -D_GLIBCXX_ASSERTIONS -D_FORTIFY_SOURCE=2 -O2 -march=haswell -fno-asynchronous-unwind-tables -momit-leaf-frame-pointer -ftree-loop-vectorize -fstack-protector-strong --param ssp-buffer-size=4 -fstack-clash-protection -fPIE -fPIC -Wl,--hash-style=gnu -fno-plt -fomit-frame-pointer -fmodulo-sched -fno-expensive-optimizations -fira-loop-pressure -fno-sched-spec-load -fconserve-stack -fisolate-erroneous-paths-attribute -fdelete-null-pointer-checks -fisolate-erroneous-paths-dereference -Wall conftest.c >&5
|
||||||
|
configure:5257: $? = 0
|
||||||
|
configure:5261: test -z
|
||||||
|
|| test ! -s conftest.err
|
||||||
|
configure:5264: $? = 0
|
||||||
|
configure:5267: test -s conftest.o
|
||||||
|
configure:5270: $? = 0
|
||||||
|
configure:5359: gcc -o conftest -pipe -D_GLIBCXX_ASSERTIONS -D_FORTIFY_SOURCE=2 -O2 -march=haswell -fno-asynchronous-unwind-tables -momit-leaf-frame-pointer -ftree-loop-vectorize -fstack-protector-strong --param ssp-buffer-size=4 -fstack-clash-protection -fPIE -fPIC -Wl,--hash-style=gnu -fno-plt -fomit-frame-pointer -fmodulo-sched -fno-expensive-optimizations -fira-loop-pressure -fno-sched-spec-load -fconserve-stack -fisolate-erroneous-paths-attribute -fdelete-null-pointer-checks -fisolate-erroneous-paths-dereference -Wall -Wl,-O2,-sort-common,-as-needed,-z,relro,-z,now -L/usr/lib64 conftest.c >&5
|
||||||
|
conftest.c: In function 'main':
|
||||||
|
conftest.c:32:7: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
|
||||||
|
32 | exit(2);
|
||||||
|
| ^~~~
|
||||||
|
conftest.c:16:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
|
||||||
|
15 | #include <ctype.h>
|
||||||
|
+++ |+#include <stdlib.h>
|
||||||
|
16 | #if ((' ' & 0x0FF) == 0x020)
|
||||||
|
conftest.c:32:7: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
|
||||||
|
32 | exit(2);
|
||||||
|
| ^~~~
|
||||||
|
conftest.c:32:7: note: include '<stdlib.h>' or provide a declaration of 'exit'
|
||||||
|
conftest.c:33:3: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
|
||||||
|
33 | exit (0);
|
||||||
|
| ^~~~
|
||||||
|
conftest.c:33:3: note: include '<stdlib.h>' or provide a declaration of 'exit'
|
||||||
|
configure:5362: $? = 0
|
||||||
|
configure:5364: ./conftest
|
||||||
|
configure:5367: $? = 0
|
||||||
|
configure:5382: result: yes
|
||||||
|
configure:5406: checking for sys/types.h
|
||||||
|
configure:5422: gcc -c -pipe -D_GLIBCXX_ASSERTIONS -D_FORTIFY_SOURCE=2 -O2 -march=haswell -fno-asynchronous-unwind-tables -momit-leaf-frame-pointer -ftree-loop-vectorize -fstack-protector-strong --param ssp-buffer-size=4 -fstack-clash-protection -fPIE -fPIC -Wl,--hash-style=gnu -fno-plt -fomit-frame-pointer -fmodulo-sched -fno-expensive-optimizations -fira-loop-pressure -fno-sched-spec-load -fconserve-stack -fisolate-erroneous-paths-attribute -fdelete-null-pointer-checks -fisolate-erroneous-paths-dereference -Wall conftest.c >&5
|
||||||
|
configure:5428: $? = 0
|
||||||
|
configure:5432: test -z
|
||||||
|
|| test ! -s conftest.err
|
||||||
|
configure:5435: $? = 0
|
||||||
|
configure:5438: test -s conftest.o
|
||||||
|
configure:5441: $? = 0
|
||||||
|
configure:5452: result: yes
|
||||||
|
configure:5406: checking for sys/stat.h
|
||||||
|
configure:5422: gcc -c -pipe -D_GLIBCXX_ASSERTIONS -D_FORTIFY_SOURCE=2 -O2 -march=haswell -fno-asynchronous-unwind-tables -momit-leaf-frame-pointer -ftree-loop-vectorize -fstack-protector-strong --param ssp-buffer-size=4 -fstack-clash-protection -fPIE -fPIC -Wl,--hash-style=gnu -fno-plt -fomit-frame-pointer -fmodulo-sched -fno-expensive-optimizations -fira-loop-pressure -fno-sched-spec-load -fconserve-stack -fisolate-erroneous-paths-attribute -fdelete-null-pointer-checks -fisolate-erroneous-paths-dereference -Wall conftest.c >&5
|
||||||
|
configure:5428: $? = 0
|
||||||
|
configure:5432: test -z
|
||||||
|
|| test ! -s conftest.err
|
||||||
|
configure:5435: $? = 0
|
||||||
|
configure:5438: test -s conftest.o
|
||||||
|
configure:5441: $? = 0
|
||||||
|
configure:5452: result: yes
|
||||||
|
configure:5406: checking for stdlib.h
|
||||||
|
configure:5422: gcc -c -pipe -D_GLIBCXX_ASSERTIONS -D_FORTIFY_SOURCE=2 -O2 -march=haswell -fno-asynchronous-unwind-tables -momit-leaf-frame-pointer -ftree-loop-vectorize -fstack-protector-strong --param ssp-buffer-size=4 -fstack-clash-protection -fPIE -fPIC -Wl,--hash-style=gnu -fno-plt -fomit-frame-pointer -fmodulo-sched -fno-expensive-optimizations -fira-loop-pressure -fno-sched-spec-load -fconserve-stack -fisolate-erroneous-paths-attribute -fdelete-null-pointer-checks -fisolate-erroneous-paths-dereference -Wall conftest.c >&5
|
||||||
|
configure:5428: $? = 0
|
||||||
|
configure:5432: test -z
|
||||||
|
|| test ! -s conftest.err
|
||||||
|
configure:5435: $? = 0
|
||||||
|
configure:5438: test -s conftest.o
|
||||||
|
configure:5441: $? = 0
|
||||||
|
configure:5452: result: yes
|
||||||
|
configure:5406: checking for string.h
|
||||||
|
configure:5422: gcc -c -pipe -D_GLIBCXX_ASSERTIONS -D_FORTIFY_SOURCE=2 -O2 -march=haswell -fno-asynchronous-unwind-tables -momit-leaf-frame-pointer -ftree-loop-vectorize -fstack-protector-strong --param ssp-buffer-size=4 -fstack-clash-protection -fPIE -fPIC -Wl,--hash-style=gnu -fno-plt -fomit-frame-pointer -fmodulo-sched -fno-expensive-optimizations -fira-loop-pressure -fno-sched-spec-load -fconserve-stack -fisolate-erroneous-paths-attribute -fdelete-null-pointer-checks -fisolate-erroneous-paths-dereference -Wall conftest.c >&5
|
||||||
|
configure:5428: $? = 0
|
||||||
|
configure:5432: test -z
|
||||||
|
|| test ! -s conftest.err
|
||||||
|
configure:5435: $? = 0
|
||||||
|
configure:5438: test -s conftest.o
|
||||||
|
configure:5441: $? = 0
|
||||||
|
configure:5452: result: yes
|
||||||
|
configure:5406: checking for memory.h
|
||||||
|
configure:5422: gcc -c -pipe -D_GLIBCXX_ASSERTIONS -D_FORTIFY_SOURCE=2 -O2 -march=haswell -fno-asynchronous-unwind-tables -momit-leaf-frame-pointer -ftree-loop-vectorize -fstack-protector-strong --param ssp-buffer-size=4 -fstack-clash-protection -fPIE -fPIC -Wl,--hash-style=gnu -fno-plt -fomit-frame-pointer -fmodulo-sched -fno-expensive-optimizations -fira-loop-pressure -fno-sched-spec-load -fconserve-stack -fisolate-erroneous-paths-attribute -fdelete-null-pointer-checks -fisolate-erroneous-paths-dereference -Wall conftest.c >&5
|
||||||
|
configure:5428: $? = 0
|
||||||
|
configure:5432: test -z
|
||||||
|
|| test ! -s conftest.err
|
||||||
|
configure:5435: $? = 0
|
||||||
|
configure:5438: test -s conftest.o
|
||||||
|
configure:5441: $? = 0
|
||||||
|
configure:5452: result: yes
|
||||||
|
configure:5406: checking for strings.h
|
||||||
|
configure:5422: gcc -c -pipe -D_GLIBCXX_ASSERTIONS -D_FORTIFY_SOURCE=2 -O2 -march=haswell -fno-asynchronous-unwind-tables -momit-leaf-frame-pointer -ftree-loop-vectorize -fstack-protector-strong --param ssp-buffer-size=4 -fstack-clash-protection -fPIE -fPIC -Wl,--hash-style=gnu -fno-plt -fomit-frame-pointer -fmodulo-sched -fno-expensive-optimizations -fira-loop-pressure -fno-sched-spec-load -fconserve-stack -fisolate-erroneous-paths-attribute -fdelete-null-pointer-checks -fisolate-erroneous-paths-dereference -Wall conftest.c >&5
|
||||||
|
configure:5428: $? = 0
|
||||||
|
configure:5432: test -z
|
||||||
|
|| test ! -s conftest.err
|
||||||
|
configure:5435: $? = 0
|
||||||
|
configure:5438: test -s conftest.o
|
||||||
|
configure:5441: $? = 0
|
||||||
|
configure:5452: result: yes
|
||||||
|
configure:5406: checking for inttypes.h
|
||||||
|
configure:5422: gcc -c -pipe -D_GLIBCXX_ASSERTIONS -D_FORTIFY_SOURCE=2 -O2 -march=haswell -fno-asynchronous-unwind-tables -momit-leaf-frame-pointer -ftree-loop-vectorize -fstack-protector-strong --param ssp-buffer-size=4 -fstack-clash-protection -fPIE -fPIC -Wl,--hash-style=gnu -fno-plt -fomit-frame-pointer -fmodulo-sched -fno-expensive-optimizations -fira-loop-pressure -fno-sched-spec-load -fconserve-stack -fisolate-erroneous-paths-attribute -fdelete-null-pointer-checks -fisolate-erroneous-paths-dereference -Wall conftest.c >&5
|
||||||
|
configure:5428: $? = 0
|
||||||
|
configure:5432: test -z
|
||||||
|
|| test ! -s conftest.err
|
||||||
|
configure:5435: $? = 0
|
||||||
|
configure:5438: test -s conftest.o
|
||||||
|
configure:5441: $? = 0
|
||||||
|
configure:5452: result: yes
|
||||||
|
configure:5406: checking for stdint.h
|
||||||
|
configure:5422: gcc -c -pipe -D_GLIBCXX_ASSERTIONS -D_FORTIFY_SOURCE=2 -O2 -march=haswell -fno-asynchronous-unwind-tables -momit-leaf-frame-pointer -ftree-loop-vectorize -fstack-protector-strong --param ssp-buffer-size=4 -fstack-clash-protection -fPIE -fPIC -Wl,--hash-style=gnu -fno-plt -fomit-frame-pointer -fmodulo-sched -fno-expensive-optimizations -fira-loop-pressure -fno-sched-spec-load -fconserve-stack -fisolate-erroneous-paths-attribute -fdelete-null-pointer-checks -fisolate-erroneous-paths-dereference -Wall conftest.c >&5
|
||||||
|
configure:5428: $? = 0
|
||||||
|
configure:5432: test -z
|
||||||
|
|| test ! -s conftest.err
|
||||||
|
configure:5435: $? = 0
|
||||||
|
configure:5438: test -s conftest.o
|
||||||
|
configure:5441: $? = 0
|
||||||
|
configure:5452: result: yes
|
||||||
|
configure:5406: checking for unistd.h
|
||||||
|
configure:5422: gcc -c -pipe -D_GLIBCXX_ASSERTIONS -D_FORTIFY_SOURCE=2 -O2 -march=haswell -fno-asynchronous-unwind-tables -momit-leaf-frame-pointer -ftree-loop-vectorize -fstack-protector-strong --param ssp-buffer-size=4 -fstack-clash-protection -fPIE -fPIC -Wl,--hash-style=gnu -fno-plt -fomit-frame-pointer -fmodulo-sched -fno-expensive-optimizations -fira-loop-pressure -fno-sched-spec-load -fconserve-stack -fisolate-erroneous-paths-attribute -fdelete-null-pointer-checks -fisolate-erroneous-paths-dereference -Wall conftest.c >&5
|
||||||
|
configure:5428: $? = 0
|
||||||
|
configure:5432: test -z
|
||||||
|
|| test ! -s conftest.err
|
||||||
|
configure:5435: $? = 0
|
||||||
|
configure:5438: test -s conftest.o
|
||||||
|
configure:5441: $? = 0
|
||||||
|
configure:5452: result: yes
|
||||||
|
configure:5485: checking arpa/inet.h usability
|
||||||
|
configure:5497: gcc -c -pipe -D_GLIBCXX_ASSERTIONS -D_FORTIFY_SOURCE=2 -O2 -march=haswell -fno-asynchronous-unwind-tables -momit-leaf-frame-pointer -ftree-loop-vectorize -fstack-protector-strong --param ssp-buffer-size=4 -fstack-clash-protection -fPIE -fPIC -Wl,--hash-style=gnu -fno-plt -fomit-frame-pointer -fmodulo-sched -fno-expensive-optimizations -fira-loop-pressure -fno-sched-spec-load -fconserve-stack -fisolate-erroneous-paths-attribute -fdelete-null-pointer-checks -fisolate-erroneous-paths-dereference -Wall conftest.c >&5
|
||||||
|
configure:5503: $? = 0
|
||||||
|
configure:5507: test -z
|
||||||
|
|| test ! -s conftest.err
|
||||||
|
configure:5510: $? = 0
|
||||||
|
configure:5513: test -s conftest.o
|
||||||
|
configure:5516: $? = 0
|
||||||
|
configure:5526: result: yes
|
||||||
|
configure:5530: checking arpa/inet.h presence
|
||||||
|
configure:5540: gcc -E conftest.c
|
||||||
|
configure:5546: $? = 0
|
||||||
|
configure:5566: result: yes
|
||||||
|
configure:5601: checking for arpa/inet.h
|
||||||
|
configure:5608: result: yes
|
||||||
|
configure:5485: checking fcntl.h usability
|
||||||
|
configure:5497: gcc -c -pipe -D_GLIBCXX_ASSERTIONS -D_FORTIFY_SOURCE=2 -O2 -march=haswell -fno-asynchronous-unwind-tables -momit-leaf-frame-pointer -ftree-loop-vectorize -fstack-protector-strong --param ssp-buffer-size=4 -fstack-clash-protection -fPIE -fPIC -Wl,--hash-style=gnu -fno-plt -fomit-frame-pointer -fmodulo-sched -fno-expensive-optimizations -fira-loop-pressure -fno-sched-spec-load -fconserve-stack -fisolate-erroneous-paths-attribute -fdelete-null-pointer-checks -fisolate-erroneous-paths-dereference -Wall conftest.c >&5
|
||||||
|
configure:5503: $? = 0
|
||||||
|
configure:5507: test -z
|
||||||
|
|| test ! -s conftest.err
|
||||||
|
configure:5510: $? = 0
|
||||||
|
configure:5513: test -s conftest.o
|
||||||
|
configure:5516: $? = 0
|
||||||
|
configure:5526: result: yes
|
||||||
|
configure:5530: checking fcntl.h presence
|
||||||
|
configure:5540: gcc -E conftest.c
|
||||||
|
configure:5546: $? = 0
|
||||||
|
configure:5566: result: yes
|
||||||
|
configure:5601: checking for fcntl.h
|
||||||
|
configure:5608: result: yes
|
||||||
|
configure:5485: checking netdb.h usability
|
||||||
|
configure:5497: gcc -c -pipe -D_GLIBCXX_ASSERTIONS -D_FORTIFY_SOURCE=2 -O2 -march=haswell -fno-asynchronous-unwind-tables -momit-leaf-frame-pointer -ftree-loop-vectorize -fstack-protector-strong --param ssp-buffer-size=4 -fstack-clash-protection -fPIE -fPIC -Wl,--hash-style=gnu -fno-plt -fomit-frame-pointer -fmodulo-sched -fno-expensive-optimizations -fira-loop-pressure -fno-sched-spec-load -fconserve-stack -fisolate-erroneous-paths-attribute -fdelete-null-pointer-checks -fisolate-erroneous-paths-dereference -Wall conftest.c >&5
|
||||||
|
configure:5503: $? = 0
|
||||||
|
configure:5507: test -z
|
||||||
|
|| test ! -s conftest.err
|
||||||
|
configure:5510: $? = 0
|
||||||
|
configure:5513: test -s conftest.o
|
||||||
|
configure:5516: $? = 0
|
||||||
|
configure:5526: result: yes
|
||||||
|
configure:5530: checking netdb.h presence
|
||||||
|
configure:5540: gcc -E conftest.c
|
||||||
|
configure:5546: $? = 0
|
||||||
|
configure:5566: result: yes
|
||||||
|
configure:5601: checking for netdb.h
|
||||||
|
configure:5608: result: yes
|
||||||
|
configure:5485: checking netinet/in.h usability
|
||||||
|
configure:5497: gcc -c -pipe -D_GLIBCXX_ASSERTIONS -D_FORTIFY_SOURCE=2 -O2 -march=haswell -fno-asynchronous-unwind-tables -momit-leaf-frame-pointer -ftree-loop-vectorize -fstack-protector-strong --param ssp-buffer-size=4 -fstack-clash-protection -fPIE -fPIC -Wl,--hash-style=gnu -fno-plt -fomit-frame-pointer -fmodulo-sched -fno-expensive-optimizations -fira-loop-pressure -fno-sched-spec-load -fconserve-stack -fisolate-erroneous-paths-attribute -fdelete-null-pointer-checks -fisolate-erroneous-paths-dereference -Wall conftest.c >&5
|
||||||
|
configure:5503: $? = 0
|
||||||
|
configure:5507: test -z
|
||||||
|
|| test ! -s conftest.err
|
||||||
|
configure:5510: $? = 0
|
||||||
|
configure:5513: test -s conftest.o
|
||||||
|
configure:5516: $? = 0
|
||||||
|
configure:5526: result: yes
|
||||||
|
configure:5530: checking netinet/in.h presence
|
||||||
|
configure:5540: gcc -E conftest.c
|
||||||
|
configure:5546: $? = 0
|
||||||
|
configure:5566: result: yes
|
||||||
|
configure:5601: checking for netinet/in.h
|
||||||
|
configure:5608: result: yes
|
||||||
|
configure:5476: checking for strings.h
|
||||||
|
configure:5481: result: yes
|
||||||
|
configure:5485: checking sys/socket.h usability
|
||||||
|
configure:5497: gcc -c -pipe -D_GLIBCXX_ASSERTIONS -D_FORTIFY_SOURCE=2 -O2 -march=haswell -fno-asynchronous-unwind-tables -momit-leaf-frame-pointer -ftree-loop-vectorize -fstack-protector-strong --param ssp-buffer-size=4 -fstack-clash-protection -fPIE -fPIC -Wl,--hash-style=gnu -fno-plt -fomit-frame-pointer -fmodulo-sched -fno-expensive-optimizations -fira-loop-pressure -fno-sched-spec-load -fconserve-stack -fisolate-erroneous-paths-attribute -fdelete-null-pointer-checks -fisolate-erroneous-paths-dereference -Wall conftest.c >&5
|
||||||
|
configure:5503: $? = 0
|
||||||
|
configure:5507: test -z
|
||||||
|
|| test ! -s conftest.err
|
||||||
|
configure:5510: $? = 0
|
||||||
|
configure:5513: test -s conftest.o
|
||||||
|
configure:5516: $? = 0
|
||||||
|
configure:5526: result: yes
|
||||||
|
configure:5530: checking sys/socket.h presence
|
||||||
|
configure:5540: gcc -E conftest.c
|
||||||
|
configure:5546: $? = 0
|
||||||
|
configure:5566: result: yes
|
||||||
|
configure:5601: checking for sys/socket.h
|
||||||
|
configure:5608: result: yes
|
||||||
|
configure:5485: checking sys/time.h usability
|
||||||
|
configure:5497: gcc -c -pipe -D_GLIBCXX_ASSERTIONS -D_FORTIFY_SOURCE=2 -O2 -march=haswell -fno-asynchronous-unwind-tables -momit-leaf-frame-pointer -ftree-loop-vectorize -fstack-protector-strong --param ssp-buffer-size=4 -fstack-clash-protection -fPIE -fPIC -Wl,--hash-style=gnu -fno-plt -fomit-frame-pointer -fmodulo-sched -fno-expensive-optimizations -fira-loop-pressure -fno-sched-spec-load -fconserve-stack -fisolate-erroneous-paths-attribute -fdelete-null-pointer-checks -fisolate-erroneous-paths-dereference -Wall conftest.c >&5
|
||||||
|
configure:5503: $? = 0
|
||||||
|
configure:5507: test -z
|
||||||
|
|| test ! -s conftest.err
|
||||||
|
configure:5510: $? = 0
|
||||||
|
configure:5513: test -s conftest.o
|
||||||
|
configure:5516: $? = 0
|
||||||
|
configure:5526: result: yes
|
||||||
|
configure:5530: checking sys/time.h presence
|
||||||
|
configure:5540: gcc -E conftest.c
|
||||||
|
configure:5546: $? = 0
|
||||||
|
configure:5566: result: yes
|
||||||
|
configure:5601: checking for sys/time.h
|
||||||
|
configure:5608: result: yes
|
||||||
|
configure:5476: checking for unistd.h
|
||||||
|
configure:5481: result: yes
|
||||||
|
configure:5622: checking whether time.h and sys/time.h may both be included
|
||||||
|
configure:5647: gcc -c -pipe -D_GLIBCXX_ASSERTIONS -D_FORTIFY_SOURCE=2 -O2 -march=haswell -fno-asynchronous-unwind-tables -momit-leaf-frame-pointer -ftree-loop-vectorize -fstack-protector-strong --param ssp-buffer-size=4 -fstack-clash-protection -fPIE -fPIC -Wl,--hash-style=gnu -fno-plt -fomit-frame-pointer -fmodulo-sched -fno-expensive-optimizations -fira-loop-pressure -fno-sched-spec-load -fconserve-stack -fisolate-erroneous-paths-attribute -fdelete-null-pointer-checks -fisolate-erroneous-paths-dereference -Wall conftest.c >&5
|
||||||
|
configure:5653: $? = 0
|
||||||
|
configure:5657: test -z
|
||||||
|
|| test ! -s conftest.err
|
||||||
|
configure:5660: $? = 0
|
||||||
|
configure:5663: test -s conftest.o
|
||||||
|
configure:5666: $? = 0
|
||||||
|
configure:5677: result: yes
|
||||||
|
configure:5688: checking for ANSI C header files
|
||||||
|
configure:5844: result: yes
|
||||||
|
configure:5854: checking return type of signal handlers
|
||||||
|
configure:5885: gcc -c -pipe -D_GLIBCXX_ASSERTIONS -D_FORTIFY_SOURCE=2 -O2 -march=haswell -fno-asynchronous-unwind-tables -momit-leaf-frame-pointer -ftree-loop-vectorize -fstack-protector-strong --param ssp-buffer-size=4 -fstack-clash-protection -fPIE -fPIC -Wl,--hash-style=gnu -fno-plt -fomit-frame-pointer -fmodulo-sched -fno-expensive-optimizations -fira-loop-pressure -fno-sched-spec-load -fconserve-stack -fisolate-erroneous-paths-attribute -fdelete-null-pointer-checks -fisolate-erroneous-paths-dereference -Wall conftest.c >&5
|
||||||
|
conftest.c: In function 'main':
|
||||||
|
conftest.c:49:5: warning: unused variable 'i' [-Wunused-variable]
|
||||||
|
49 | int i;
|
||||||
|
| ^
|
||||||
|
configure:5891: $? = 0
|
||||||
|
configure:5895: test -z
|
||||||
|
|| test ! -s conftest.err
|
||||||
|
configure:5898: $? = 0
|
||||||
|
configure:5901: test -s conftest.o
|
||||||
|
configure:5904: $? = 0
|
||||||
|
configure:5915: result: void
|
||||||
|
configure:5930: checking for gethostbyname
|
||||||
|
configure:6018: result: yes
|
||||||
|
configure:5930: checking for inet_ntoa
|
||||||
|
configure:5987: gcc -o conftest -pipe -D_GLIBCXX_ASSERTIONS -D_FORTIFY_SOURCE=2 -O2 -march=haswell -fno-asynchronous-unwind-tables -momit-leaf-frame-pointer -ftree-loop-vectorize -fstack-protector-strong --param ssp-buffer-size=4 -fstack-clash-protection -fPIE -fPIC -Wl,--hash-style=gnu -fno-plt -fomit-frame-pointer -fmodulo-sched -fno-expensive-optimizations -fira-loop-pressure -fno-sched-spec-load -fconserve-stack -fisolate-erroneous-paths-attribute -fdelete-null-pointer-checks -fisolate-erroneous-paths-dereference -Wall -Wl,-O2,-sort-common,-as-needed,-z,relro,-z,now -L/usr/lib64 conftest.c >&5
|
||||||
|
configure:5993: $? = 0
|
||||||
|
configure:5997: test -z
|
||||||
|
|| test ! -s conftest.err
|
||||||
|
configure:6000: $? = 0
|
||||||
|
configure:6003: test -s conftest
|
||||||
|
configure:6006: $? = 0
|
||||||
|
configure:6018: result: yes
|
||||||
|
configure:5930: checking for socket
|
||||||
|
configure:5987: gcc -o conftest -pipe -D_GLIBCXX_ASSERTIONS -D_FORTIFY_SOURCE=2 -O2 -march=haswell -fno-asynchronous-unwind-tables -momit-leaf-frame-pointer -ftree-loop-vectorize -fstack-protector-strong --param ssp-buffer-size=4 -fstack-clash-protection -fPIE -fPIC -Wl,--hash-style=gnu -fno-plt -fomit-frame-pointer -fmodulo-sched -fno-expensive-optimizations -fira-loop-pressure -fno-sched-spec-load -fconserve-stack -fisolate-erroneous-paths-attribute -fdelete-null-pointer-checks -fisolate-erroneous-paths-dereference -Wall -Wl,-O2,-sort-common,-as-needed,-z,relro,-z,now -L/usr/lib64 conftest.c >&5
|
||||||
|
configure:5993: $? = 0
|
||||||
|
configure:5997: test -z
|
||||||
|
|| test ! -s conftest.err
|
||||||
|
configure:6000: $? = 0
|
||||||
|
configure:6003: test -s conftest
|
||||||
|
configure:6006: $? = 0
|
||||||
|
configure:6018: result: yes
|
||||||
|
configure:5930: checking for strstr
|
||||||
|
configure:5987: gcc -o conftest -pipe -D_GLIBCXX_ASSERTIONS -D_FORTIFY_SOURCE=2 -O2 -march=haswell -fno-asynchronous-unwind-tables -momit-leaf-frame-pointer -ftree-loop-vectorize -fstack-protector-strong --param ssp-buffer-size=4 -fstack-clash-protection -fPIE -fPIC -Wl,--hash-style=gnu -fno-plt -fomit-frame-pointer -fmodulo-sched -fno-expensive-optimizations -fira-loop-pressure -fno-sched-spec-load -fconserve-stack -fisolate-erroneous-paths-attribute -fdelete-null-pointer-checks -fisolate-erroneous-paths-dereference -Wall -Wl,-O2,-sort-common,-as-needed,-z,relro,-z,now -L/usr/lib64 conftest.c >&5
|
||||||
|
conftest.c:63:6: warning: conflicting types for built-in function 'strstr'; expected 'char *(const char *, const char *)' [-Wbuiltin-declaration-mismatch]
|
||||||
|
63 | char strstr ();
|
||||||
|
| ^~~~~~
|
||||||
|
conftest.c:50:1: note: 'strstr' is declared in header '<string.h>'
|
||||||
|
49 | # include <limits.h>
|
||||||
|
50 | #else
|
||||||
|
configure:5993: $? = 0
|
||||||
|
configure:5997: test -z
|
||||||
|
|| test ! -s conftest.err
|
||||||
|
configure:6000: $? = 0
|
||||||
|
configure:6003: test -s conftest
|
||||||
|
configure:6006: $? = 0
|
||||||
|
configure:6018: result: yes
|
||||||
|
configure:6142: creating ./config.status
|
||||||
|
configure:7446:
|
||||||
|
configuration is done. Type `make' to make Nebula. In case of trouble, please
|
||||||
|
check the settings in the files generated by `configure' - that is, `config.h' and `Makefile'.
|
||||||
|
|
||||||
|
## ---------------- ##
|
||||||
|
## Cache variables. ##
|
||||||
|
## ---------------- ##
|
||||||
|
|
||||||
|
ac_cv_build=x86_64-unknown-linux-gnu
|
||||||
|
ac_cv_build_alias=x86_64-unknown-linux-gnu
|
||||||
|
ac_cv_c_compiler_gnu=yes
|
||||||
|
ac_cv_env_CC_set=
|
||||||
|
ac_cv_env_CC_value=
|
||||||
|
ac_cv_env_CFLAGS_set=set
|
||||||
|
ac_cv_env_CFLAGS_value='-pipe -D_GLIBCXX_ASSERTIONS -D_FORTIFY_SOURCE=2 -O2 -march=haswell -fno-asynchronous-unwind-tables -momit-leaf-frame-pointer -ftree-loop-vectorize -fstack-protector-strong --param ssp-buffer-size=4 -fstack-clash-protection -fPIE -fPIC -Wl,--hash-style=gnu -fno-plt -fomit-frame-pointer -fmodulo-sched -fno-expensive-optimizations -fira-loop-pressure -fno-sched-spec-load -fconserve-stack -fisolate-erroneous-paths-attribute -fdelete-null-pointer-checks -fisolate-erroneous-paths-dereference -Wall'
|
||||||
|
ac_cv_env_CPPFLAGS_set=
|
||||||
|
ac_cv_env_CPPFLAGS_value=
|
||||||
|
ac_cv_env_CPP_set=
|
||||||
|
ac_cv_env_CPP_value=
|
||||||
|
ac_cv_env_LDFLAGS_set=set
|
||||||
|
ac_cv_env_LDFLAGS_value=-Wl,-O2,-sort-common,-as-needed,-z,relro,-z,now
|
||||||
|
ac_cv_env_build_alias_set=
|
||||||
|
ac_cv_env_build_alias_value=
|
||||||
|
ac_cv_env_host_alias_set=
|
||||||
|
ac_cv_env_host_alias_value=
|
||||||
|
ac_cv_env_target_alias_set=
|
||||||
|
ac_cv_env_target_alias_value=
|
||||||
|
ac_cv_exeext=
|
||||||
|
ac_cv_func_XmStringCreateLocalized=yes
|
||||||
|
ac_cv_func_XmStringGenerate=yes
|
||||||
|
ac_cv_func_connect=yes
|
||||||
|
ac_cv_func_gethostbyname=yes
|
||||||
|
ac_cv_func_inet_ntoa=yes
|
||||||
|
ac_cv_func_remove=yes
|
||||||
|
ac_cv_func_shmat=yes
|
||||||
|
ac_cv_func_socket=yes
|
||||||
|
ac_cv_func_strstr=yes
|
||||||
|
ac_cv_have_x='have_x=yes ac_x_includes= ac_x_libraries=/usr/lib64'
|
||||||
|
ac_cv_header_arpa_inet_h=yes
|
||||||
|
ac_cv_header_fcntl_h=yes
|
||||||
|
ac_cv_header_inttypes_h=yes
|
||||||
|
ac_cv_header_memory_h=yes
|
||||||
|
ac_cv_header_netdb_h=yes
|
||||||
|
ac_cv_header_netinet_in_h=yes
|
||||||
|
ac_cv_header_stdc=yes
|
||||||
|
ac_cv_header_stdint_h=yes
|
||||||
|
ac_cv_header_stdlib_h=yes
|
||||||
|
ac_cv_header_string_h=yes
|
||||||
|
ac_cv_header_strings_h=yes
|
||||||
|
ac_cv_header_sys_socket_h=yes
|
||||||
|
ac_cv_header_sys_stat_h=yes
|
||||||
|
ac_cv_header_sys_time_h=yes
|
||||||
|
ac_cv_header_sys_types_h=yes
|
||||||
|
ac_cv_header_time=yes
|
||||||
|
ac_cv_header_unistd_h=yes
|
||||||
|
ac_cv_lib_ICE_IceConnectionNumber=yes
|
||||||
|
ac_cv_lib_PW_regcmp=no
|
||||||
|
ac_cv_lib_Sgm_SgCreateList=no
|
||||||
|
ac_cv_lib_X11_XOpenDisplay=yes
|
||||||
|
ac_cv_lib_Xm_XmCreateOptionMenu=yes
|
||||||
|
ac_cv_lib_Xt_XtToolkitInitialize=yes
|
||||||
|
ac_cv_objext=o
|
||||||
|
ac_cv_path_install='/bin//install -c'
|
||||||
|
ac_cv_prog_AWK=awk
|
||||||
|
ac_cv_prog_CPP='gcc -E'
|
||||||
|
ac_cv_prog_ac_ct_CC=gcc
|
||||||
|
ac_cv_prog_cc_g=yes
|
||||||
|
ac_cv_prog_cc_stdc=
|
||||||
|
ac_cv_prog_egrep='grep -E'
|
||||||
|
ac_cv_prog_make_make_set=yes
|
||||||
|
ac_cv_type_signal=void
|
||||||
|
am_cv_CC_dependencies_compiler_type=gcc3
|
||||||
|
|
||||||
|
## ----------------- ##
|
||||||
|
## Output variables. ##
|
||||||
|
## ----------------- ##
|
||||||
|
|
||||||
|
ACLOCAL='${SHELL} /usr/src/midfavila/nebula-irc/missing --run aclocal-1.8'
|
||||||
|
AMDEPBACKSLASH='\'
|
||||||
|
AMDEP_FALSE='#'
|
||||||
|
AMDEP_TRUE=''
|
||||||
|
AMTAR='${SHELL} /usr/src/midfavila/nebula-irc/missing --run tar'
|
||||||
|
AUTOCONF='${SHELL} /usr/src/midfavila/nebula-irc/missing --run autoconf'
|
||||||
|
AUTOHEADER='${SHELL} /usr/src/midfavila/nebula-irc/missing --run autoheader'
|
||||||
|
AUTOMAKE='${SHELL} /usr/src/midfavila/nebula-irc/missing --run automake-1.8'
|
||||||
|
AWK='awk'
|
||||||
|
CC='gcc'
|
||||||
|
CCDEPMODE='depmode=gcc3'
|
||||||
|
CFLAGS='-pipe -D_GLIBCXX_ASSERTIONS -D_FORTIFY_SOURCE=2 -O2 -march=haswell -fno-asynchronous-unwind-tables -momit-leaf-frame-pointer -ftree-loop-vectorize -fstack-protector-strong --param ssp-buffer-size=4 -fstack-clash-protection -fPIE -fPIC -Wl,--hash-style=gnu -fno-plt -fomit-frame-pointer -fmodulo-sched -fno-expensive-optimizations -fira-loop-pressure -fno-sched-spec-load -fconserve-stack -fisolate-erroneous-paths-attribute -fdelete-null-pointer-checks -fisolate-erroneous-paths-dereference -Wall '
|
||||||
|
CPP='gcc -E'
|
||||||
|
CPPFLAGS=' '
|
||||||
|
CYGPATH_W='echo'
|
||||||
|
DEFS='-DHAVE_CONFIG_H'
|
||||||
|
DEPDIR='.deps'
|
||||||
|
ECHO_C=''ECHO_N=''
|
||||||
|
ECHO_T=''
|
||||||
|
EGREP='grep -E'
|
||||||
|
EXEEXT=''
|
||||||
|
INSTALL_DATA='${INSTALL} -m 644'
|
||||||
|
INSTALL_PROGRAM='${INSTALL}'
|
||||||
|
INSTALL_SCRIPT='${INSTALL}'
|
||||||
|
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
|
||||||
|
ISYSTEM='-I'
|
||||||
|
LDFLAGS='-Wl,-O2,-sort-common,-as-needed,-z,relro,-z,now -L/usr/lib64'
|
||||||
|
LIBOBJS=''
|
||||||
|
LIBS=' -lXm -lXt -lX11'
|
||||||
|
LTLIBOBJS=''
|
||||||
|
MAKEINFO='${SHELL} /usr/src/midfavila/nebula-irc/missing --run makeinfo'
|
||||||
|
NEBULA_ARCHOS='(linux-gnu running on x86_64)'
|
||||||
|
OBJEXT='o'
|
||||||
|
PACKAGE='nebula'
|
||||||
|
PACKAGE_BUGREPORT='rmottola@users.sourceforge.net'
|
||||||
|
PACKAGE_NAME='nebula'
|
||||||
|
PACKAGE_STRING='nebula 0.5'
|
||||||
|
PACKAGE_TARNAME='nebula'
|
||||||
|
PACKAGE_VERSION='0.5'
|
||||||
|
PATH_SEPARATOR=':'
|
||||||
|
SET_MAKE=''
|
||||||
|
SGM_LIBS=''
|
||||||
|
SHELL='/bin/sh'
|
||||||
|
STRIP=''
|
||||||
|
VERSION='0.5'
|
||||||
|
X11_LIBS='-lX11'
|
||||||
|
XM_LIBS='-lXm'
|
||||||
|
XT_LIBS='-lXt'
|
||||||
|
X_CFLAGS=''
|
||||||
|
X_EXTRA_LIBS=''
|
||||||
|
X_LIBS=' -L/usr/lib64'
|
||||||
|
X_PRE_LIBS=' -lSM -lICE'
|
||||||
|
ac_ct_CC='gcc'
|
||||||
|
ac_ct_STRIP=''
|
||||||
|
am__fastdepCC_FALSE='#'
|
||||||
|
am__fastdepCC_TRUE=''
|
||||||
|
am__include='include'
|
||||||
|
am__leading_dot='.'
|
||||||
|
am__quote=''
|
||||||
|
bindir='${exec_prefix}/bin'
|
||||||
|
build='x86_64-unknown-linux-gnu'
|
||||||
|
build_alias=''
|
||||||
|
build_cpu='x86_64'
|
||||||
|
build_os='linux-gnu'
|
||||||
|
build_vendor='unknown'
|
||||||
|
datadir='${prefix}/share'
|
||||||
|
exec_prefix='${prefix}'
|
||||||
|
host_alias=''
|
||||||
|
includedir='${prefix}/include'
|
||||||
|
infodir='${prefix}/info'
|
||||||
|
install_sh='/usr/src/midfavila/nebula-irc/install-sh'
|
||||||
|
libdir='${exec_prefix}/lib'
|
||||||
|
libexecdir='${exec_prefix}/libexec'
|
||||||
|
localstatedir='${prefix}/var'
|
||||||
|
mandir='${prefix}/man'
|
||||||
|
mkdir_p='$(install_sh) -d'
|
||||||
|
oldincludedir='/usr/include'
|
||||||
|
prefix='/usr/local'
|
||||||
|
program_transform_name='s,x,x,'
|
||||||
|
sbindir='${exec_prefix}/sbin'
|
||||||
|
sharedstatedir='${prefix}/com'
|
||||||
|
sysconfdir='${prefix}/etc'
|
||||||
|
target_alias=''
|
||||||
|
|
||||||
|
## ----------- ##
|
||||||
|
## confdefs.h. ##
|
||||||
|
## ----------- ##
|
||||||
|
|
||||||
|
#define ARCHOS "(linux-gnu running on x86_64)"
|
||||||
|
#define HAVE_ARPA_INET_H 1
|
||||||
|
#define HAVE_FCNTL_H 1
|
||||||
|
#define HAVE_GETHOSTBYNAME 1
|
||||||
|
#define HAVE_INET_NTOA 1
|
||||||
|
#define HAVE_INTTYPES_H 1
|
||||||
|
#define HAVE_MEMORY_H 1
|
||||||
|
#define HAVE_MOTIF 1
|
||||||
|
#define HAVE_NETDB_H 1
|
||||||
|
#define HAVE_NETINET_IN_H 1
|
||||||
|
#define HAVE_SOCKET 1
|
||||||
|
#define HAVE_STDINT_H 1
|
||||||
|
#define HAVE_STDLIB_H 1
|
||||||
|
#define HAVE_STRINGS_H 1
|
||||||
|
#define HAVE_STRINGS_H 1
|
||||||
|
#define HAVE_STRING_H 1
|
||||||
|
#define HAVE_STRSTR 1
|
||||||
|
#define HAVE_SYS_SOCKET_H 1
|
||||||
|
#define HAVE_SYS_STAT_H 1
|
||||||
|
#define HAVE_SYS_TIME_H 1
|
||||||
|
#define HAVE_SYS_TYPES_H 1
|
||||||
|
#define HAVE_UNISTD_H 1
|
||||||
|
#define HAVE_UNISTD_H 1
|
||||||
|
#define HAVE_XMSTRINGCREATELOCALIZED 1
|
||||||
|
#define HAVE_XMSTRINGGENERATE 1
|
||||||
|
#define PACKAGE "nebula"
|
||||||
|
#define PACKAGE_BUGREPORT "rmottola@users.sourceforge.net"
|
||||||
|
#define PACKAGE_NAME "nebula"
|
||||||
|
#define PACKAGE_STRING "nebula 0.5"
|
||||||
|
#define PACKAGE_TARNAME "nebula"
|
||||||
|
#define PACKAGE_VERSION "0.5"
|
||||||
|
#define RETSIGTYPE void
|
||||||
|
#define STDC_HEADERS 1
|
||||||
|
#define STDC_HEADERS 1
|
||||||
|
#define TIME_WITH_SYS_TIME 1
|
||||||
|
#define VERSION "0.5"
|
||||||
|
|
||||||
|
configure: exit 0
|
||||||
|
|
||||||
|
## ---------------------- ##
|
||||||
|
## Running config.status. ##
|
||||||
|
## ---------------------- ##
|
||||||
|
|
||||||
|
This file was extended by nebula config.status 0.5, which was
|
||||||
|
generated by GNU Autoconf 2.59. Invocation command line was
|
||||||
|
|
||||||
|
CONFIG_FILES =
|
||||||
|
CONFIG_HEADERS =
|
||||||
|
CONFIG_LINKS =
|
||||||
|
CONFIG_COMMANDS =
|
||||||
|
$ ./config.status
|
||||||
|
|
||||||
|
on commandante
|
||||||
|
|
||||||
|
config.status:701: creating Makefile
|
||||||
|
config.status:805: creating config.h
|
||||||
|
config.status:949: config.h is unchanged
|
||||||
|
config.status:1129: executing depfiles commands
|
1226
config.status
Executable file
1226
config.status
Executable file
File diff suppressed because it is too large
Load Diff
1555
config.sub
vendored
Executable file
1555
config.sub
vendored
Executable file
File diff suppressed because it is too large
Load Diff
211
configure.ac
Normal file
211
configure.ac
Normal file
@ -0,0 +1,211 @@
|
|||||||
|
dnl -*- Autoconf -*-
|
||||||
|
dnl Process this file with autoconf to produce a configure script.
|
||||||
|
dnl
|
||||||
|
dnl
|
||||||
|
AC_PREREQ(2.59)
|
||||||
|
AC_INIT(nebula, 0.5, rmottola@users.sourceforge.net)
|
||||||
|
AM_INIT_AUTOMAKE([1.8.5])
|
||||||
|
AC_CONFIG_SRCDIR([interpreter.c])
|
||||||
|
AC_CONFIG_HEADER([config.h])
|
||||||
|
dnl
|
||||||
|
dnl --------------------------------------------------------------
|
||||||
|
dnl
|
||||||
|
dnl set Architecure string
|
||||||
|
AC_CANONICAL_BUILD
|
||||||
|
NEBULA_ARCHOS="($build_os running on $build_cpu)"
|
||||||
|
AC_DEFINE_UNQUOTED(ARCHOS, "$NEBULA_ARCHOS", [the platform we are building
|
||||||
|
for])
|
||||||
|
AC_SUBST(NEBULA_ARCHOS)
|
||||||
|
dnl
|
||||||
|
dnl
|
||||||
|
dnl Checks for programs.
|
||||||
|
AC_PROG_CC
|
||||||
|
dnl
|
||||||
|
dnl with a c++ compiler we should check for -isystem PATH instead of -I
|
||||||
|
dnl
|
||||||
|
ISYSTEM="-I"
|
||||||
|
AC_SUBST(ISYSTEM)
|
||||||
|
dnl
|
||||||
|
dnl Checks for libraries.
|
||||||
|
dnl
|
||||||
|
if test "$with_x" = no; then
|
||||||
|
AC_MSG_ERROR([Nebula requires the X window system to compile and run.
|
||||||
|
Please do not use the configure option '--without-x'.])
|
||||||
|
fi
|
||||||
|
if test "$with_motif" = no; then
|
||||||
|
AC_MSG_ERROR([Nebula requires Motif to compile and run.
|
||||||
|
Please do not use the configure option '--without-motif'.])
|
||||||
|
fi
|
||||||
|
dnl
|
||||||
|
AC_PATH_XTRA
|
||||||
|
dnl
|
||||||
|
dnl
|
||||||
|
dnl Check for Motif widget libraries
|
||||||
|
dnl
|
||||||
|
dnl
|
||||||
|
dnl Motif includes and libraries...
|
||||||
|
dnl
|
||||||
|
motif_includes=
|
||||||
|
motif_libraries=
|
||||||
|
AC_ARG_WITH(motif,
|
||||||
|
[ --without-motif do not use Motif widgets])
|
||||||
|
dnl Treat --without-motif like
|
||||||
|
dnl --without-motif-includes --without-motif-libraries.
|
||||||
|
if test "$with_motif" = "no"
|
||||||
|
then
|
||||||
|
motif_includes=no
|
||||||
|
motif_libraries=no
|
||||||
|
fi
|
||||||
|
AC_ARG_WITH(motif-includes,
|
||||||
|
[ --with-motif-includes=DIR Motif include files are in DIR],
|
||||||
|
motif_includes="$withval")
|
||||||
|
AC_ARG_WITH(motif-libraries,
|
||||||
|
[ --with-motif-libraries=DIR Motif libraries are in DIR],
|
||||||
|
motif_libraries="$withval")
|
||||||
|
AC_MSG_CHECKING(for Motif)
|
||||||
|
dnl
|
||||||
|
dnl Search for the include files
|
||||||
|
dnl
|
||||||
|
dnl XXXX SEARCH CODE
|
||||||
|
dnl
|
||||||
|
dnl
|
||||||
|
dnl Add Motif definitions to X flags
|
||||||
|
dnl
|
||||||
|
if test "$motif_includes" != "" && test "$motif_includes" != "$x_includes" && test "$motif_includes" != "no"
|
||||||
|
then
|
||||||
|
X_CFLAGS="$ISYSTEM$motif_includes $X_CFLAGS"
|
||||||
|
fi
|
||||||
|
if test "$motif_libraries" != "" && test "$motif_libraries" != "$x_libraries" && test "$motif_libraries" != "no"
|
||||||
|
then
|
||||||
|
case "$X_LIBS" in
|
||||||
|
*-R\ *) X_LIBS="-L$motif_libraries -R $motif_libraries $X_LIBS";;
|
||||||
|
*-R*) X_LIBS="-L$motif_libraries -R$motif_libraries $X_LIBS";;
|
||||||
|
*) X_LIBS="-L$motif_libraries $X_LIBS";;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
dnl
|
||||||
|
motif_libraries_result="$motif_libraries"
|
||||||
|
motif_includes_result="$motif_includes"
|
||||||
|
test "$motif_libraries_result" = "" &&
|
||||||
|
motif_libraries_result="in default path"
|
||||||
|
test "$motif_includes_result" = "" &&
|
||||||
|
motif_includes_result="in default path"
|
||||||
|
test "$motif_libraries_result" = "no" &&
|
||||||
|
motif_libraries_result="(none)"
|
||||||
|
test "$motif_includes_result" = "no" &&
|
||||||
|
motif_includes_result="(none)"
|
||||||
|
AC_MSG_RESULT(
|
||||||
|
[libraries $motif_libraries_result, headers $motif_includes_result])
|
||||||
|
dnl
|
||||||
|
LIBS="$LIBS $X_EXTRA_LIBS"
|
||||||
|
CFLAGS="$CFLAGS $X_CFLAGS"
|
||||||
|
CPPFLAGS="$CPPFLAGS $X_CFLAGS"
|
||||||
|
LDFLAGS="$LDFLAGS $X_LIBS"
|
||||||
|
dnl
|
||||||
|
dnl Check for X library
|
||||||
|
dnl
|
||||||
|
X11_LIBS=""
|
||||||
|
AC_CHECK_LIB([X11],[XOpenDisplay],[X11_LIBS="-lX11"],[],
|
||||||
|
[${X_PRE_LIBS} ${X_EXTRA_LIBS}])
|
||||||
|
if test "$X11_LIBS" = ""; then
|
||||||
|
dnl Not having X is fatal. Let the user fix this.
|
||||||
|
AC_MSG_ERROR([The X11 library '-lX11' could not be found.
|
||||||
|
Please use the configure options '--x-includes=DIR'
|
||||||
|
and '--x-libraries=DIR' to specify the X location.
|
||||||
|
See the files 'config.log' for further diagnostics.])
|
||||||
|
fi
|
||||||
|
AC_SUBST(X_LIBS)
|
||||||
|
AC_SUBST(X11_LIBS)
|
||||||
|
AC_SUBST(X_PRE_LIBS)
|
||||||
|
dnl
|
||||||
|
dnl
|
||||||
|
dnl Check for X toolkit libraries
|
||||||
|
dnl
|
||||||
|
XT_LIBS=""
|
||||||
|
AC_CHECK_LIB([Xt],[XtToolkitInitialize],[XT_LIBS="-lXt"],[],
|
||||||
|
[${X_PRE_LIBS} ${X11_LIBS} ${X_EXTRA_LIBS}])
|
||||||
|
if test "$XT_LIBS" = ""; then
|
||||||
|
dnl Not having Xt is fatal. Let the user fix this.
|
||||||
|
AC_MSG_ERROR([The X toolkit library '-lXt' could not be found.
|
||||||
|
= Please use the configure options '--x-includes=DIR'
|
||||||
|
and '--x-libraries=DIR' to specify the X location.
|
||||||
|
See the files 'config.log' for further diagnostics.])
|
||||||
|
fi
|
||||||
|
AC_SUBST(XT_LIBS)
|
||||||
|
if test "$motif_includes" = "no"
|
||||||
|
then
|
||||||
|
dnl Without Xm/Xm.h, we won't get far. Let the user fix this.
|
||||||
|
AC_MSG_ERROR([The Motif include file 'Xm/Xm.h' could not be found.
|
||||||
|
Please use the configure options '--with-motif-includes=DIR'
|
||||||
|
and '--with-motif-libraries=DIR' to specify the Xm location.
|
||||||
|
See the files 'config.log' and 'ddd/config.log'
|
||||||
|
for further diagnostics.])
|
||||||
|
fi
|
||||||
|
XM_LIBS=""
|
||||||
|
XP_LIBS=""
|
||||||
|
if test "$motif_includes" != "no" && test "$motif_libraries" != "no"
|
||||||
|
then
|
||||||
|
AC_CHECK_LIB([Xm],[XmCreateOptionMenu],
|
||||||
|
[XM_LIBS="-lXm"
|
||||||
|
AC_DEFINE([HAVE_MOTIF],1,[Define if you have Motif widgets.])],
|
||||||
|
[],
|
||||||
|
[${XMU_LIBS} ${XT_LIBS} ${XP_LIBS} ${XEXT_LIBS} ${X_PRE_LIBS} ${X11_LIBS} ${X_EXTRA_LIBS} ${LIBGEN}])
|
||||||
|
dnl
|
||||||
|
fi
|
||||||
|
if test "$XM_LIBS" = ""; then
|
||||||
|
dnl Without Motif, we won't get far. Let the user fix this.
|
||||||
|
AC_MSG_ERROR([The Motif library '-lXm' could not be found.
|
||||||
|
Please use the configure options '--with-motif-includes=DIR'
|
||||||
|
and '--with-motif-libraries=DIR' to specify the Xm location.
|
||||||
|
See the files 'config.log' and for further diagnostics.])
|
||||||
|
fi
|
||||||
|
AC_SUBST(XM_LIBS)
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl ceck for the PW library neeeded to link on some older motif systems
|
||||||
|
dnl
|
||||||
|
AC_CHECK_LIB([PW], [regcmp], [XM_LIBS="$XM_LIBS -lPW"], [], [])
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl Now check for some specific Motif functions available in different version
|
||||||
|
dnl
|
||||||
|
OLD_LIBS=$LIBS
|
||||||
|
LIBS="$LIBS $XM_LIBS $XT_LIBS $X11_LIBS"
|
||||||
|
AC_CHECK_FUNCS(XmStringCreateLocalized)
|
||||||
|
AC_CHECK_FUNCS(XmStringGenerate)
|
||||||
|
LIBS=$OLD_LIBS
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl Now Check for silicon graphics specific motif extensions
|
||||||
|
dnl
|
||||||
|
SGM_LIBS=""
|
||||||
|
AC_CHECK_LIB([Sgm], [SgCreateList], [XM_LIBS="-lSgm $XM_LIBS"], [], [])
|
||||||
|
AC_SUBST(SGM_LIBS)
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl Checks for header files.
|
||||||
|
dnl
|
||||||
|
AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h strings.h sys/socket.h sys/time.h unistd.h])
|
||||||
|
|
||||||
|
dnl Checks for typedefs, structures, and compiler characteristics.
|
||||||
|
AC_HEADER_TIME
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl Checks for library functions.
|
||||||
|
dnl
|
||||||
|
AC_HEADER_STDC
|
||||||
|
AC_TYPE_SIGNAL
|
||||||
|
AC_CHECK_FUNCS([gethostbyname inet_ntoa socket strstr])
|
||||||
|
|
||||||
|
dnl a small hack
|
||||||
|
LIBS="$LIBS $XM_LIBS $XT_LIBS $X11_LIBS"
|
||||||
|
|
||||||
|
AC_CONFIG_FILES([Makefile])
|
||||||
|
AC_OUTPUT
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl Give an indication of what to do next.
|
||||||
|
dnl
|
||||||
|
AC_MSG_NOTICE([
|
||||||
|
configuration is done. Type `make' to make Nebula. In case of trouble, please
|
||||||
|
check the settings in the files generated by `configure' - that is, `config.h' and `Makefile'.])
|
522
depcomp
Executable file
522
depcomp
Executable file
@ -0,0 +1,522 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
# depcomp - compile a program generating dependencies as side-effects
|
||||||
|
|
||||||
|
scriptversion=2004-05-31.23
|
||||||
|
|
||||||
|
# Copyright (C) 1999, 2000, 2003, 2004 Free Software Foundation, Inc.
|
||||||
|
|
||||||
|
# This program is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
# any later version.
|
||||||
|
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
||||||
|
# 02111-1307, USA.
|
||||||
|
|
||||||
|
# As a special exception to the GNU General Public License, if you
|
||||||
|
# distribute this file as part of a program that contains a
|
||||||
|
# configuration script generated by Autoconf, you may include it under
|
||||||
|
# the same distribution terms that you use for the rest of that program.
|
||||||
|
|
||||||
|
# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
|
||||||
|
|
||||||
|
case $1 in
|
||||||
|
'')
|
||||||
|
echo "$0: No command. Try \`$0 --help' for more information." 1>&2
|
||||||
|
exit 1;
|
||||||
|
;;
|
||||||
|
-h | --h*)
|
||||||
|
cat <<\EOF
|
||||||
|
Usage: depcomp [--help] [--version] PROGRAM [ARGS]
|
||||||
|
|
||||||
|
Run PROGRAMS ARGS to compile a file, generating dependencies
|
||||||
|
as side-effects.
|
||||||
|
|
||||||
|
Environment variables:
|
||||||
|
depmode Dependency tracking mode.
|
||||||
|
source Source file read by `PROGRAMS ARGS'.
|
||||||
|
object Object file output by `PROGRAMS ARGS'.
|
||||||
|
DEPDIR directory where to store dependencies.
|
||||||
|
depfile Dependency file to output.
|
||||||
|
tmpdepfile Temporary file to use when outputing dependencies.
|
||||||
|
libtool Whether libtool is used (yes/no).
|
||||||
|
|
||||||
|
Report bugs to <bug-automake@gnu.org>.
|
||||||
|
EOF
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
-v | --v*)
|
||||||
|
echo "depcomp $scriptversion"
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if test -z "$depmode" || test -z "$source" || test -z "$object"; then
|
||||||
|
echo "depcomp: Variables source, object and depmode must be set" 1>&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
|
||||||
|
depfile=${depfile-`echo "$object" |
|
||||||
|
sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
|
||||||
|
tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
|
||||||
|
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
|
||||||
|
# Some modes work just like other modes, but use different flags. We
|
||||||
|
# parameterize here, but still list the modes in the big case below,
|
||||||
|
# to make depend.m4 easier to write. Note that we *cannot* use a case
|
||||||
|
# here, because this file can only contain one case statement.
|
||||||
|
if test "$depmode" = hp; then
|
||||||
|
# HP compiler uses -M and no extra arg.
|
||||||
|
gccflag=-M
|
||||||
|
depmode=gcc
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$depmode" = dashXmstdout; then
|
||||||
|
# This is just like dashmstdout with a different argument.
|
||||||
|
dashmflag=-xM
|
||||||
|
depmode=dashmstdout
|
||||||
|
fi
|
||||||
|
|
||||||
|
case "$depmode" in
|
||||||
|
gcc3)
|
||||||
|
## gcc 3 implements dependency tracking that does exactly what
|
||||||
|
## we want. Yay! Note: for some reason libtool 1.4 doesn't like
|
||||||
|
## it if -MD -MP comes after the -MF stuff. Hmm.
|
||||||
|
"$@" -MT "$object" -MD -MP -MF "$tmpdepfile"
|
||||||
|
stat=$?
|
||||||
|
if test $stat -eq 0; then :
|
||||||
|
else
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
exit $stat
|
||||||
|
fi
|
||||||
|
mv "$tmpdepfile" "$depfile"
|
||||||
|
;;
|
||||||
|
|
||||||
|
gcc)
|
||||||
|
## There are various ways to get dependency output from gcc. Here's
|
||||||
|
## why we pick this rather obscure method:
|
||||||
|
## - Don't want to use -MD because we'd like the dependencies to end
|
||||||
|
## up in a subdir. Having to rename by hand is ugly.
|
||||||
|
## (We might end up doing this anyway to support other compilers.)
|
||||||
|
## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
|
||||||
|
## -MM, not -M (despite what the docs say).
|
||||||
|
## - Using -M directly means running the compiler twice (even worse
|
||||||
|
## than renaming).
|
||||||
|
if test -z "$gccflag"; then
|
||||||
|
gccflag=-MD,
|
||||||
|
fi
|
||||||
|
"$@" -Wp,"$gccflag$tmpdepfile"
|
||||||
|
stat=$?
|
||||||
|
if test $stat -eq 0; then :
|
||||||
|
else
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
exit $stat
|
||||||
|
fi
|
||||||
|
rm -f "$depfile"
|
||||||
|
echo "$object : \\" > "$depfile"
|
||||||
|
alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
|
||||||
|
## The second -e expression handles DOS-style file names with drive letters.
|
||||||
|
sed -e 's/^[^:]*: / /' \
|
||||||
|
-e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
|
||||||
|
## This next piece of magic avoids the `deleted header file' problem.
|
||||||
|
## The problem is that when a header file which appears in a .P file
|
||||||
|
## is deleted, the dependency causes make to die (because there is
|
||||||
|
## typically no way to rebuild the header). We avoid this by adding
|
||||||
|
## dummy dependencies for each header file. Too bad gcc doesn't do
|
||||||
|
## this for us directly.
|
||||||
|
tr ' ' '
|
||||||
|
' < "$tmpdepfile" |
|
||||||
|
## Some versions of gcc put a space before the `:'. On the theory
|
||||||
|
## that the space means something, we add a space to the output as
|
||||||
|
## well.
|
||||||
|
## Some versions of the HPUX 10.20 sed can't process this invocation
|
||||||
|
## correctly. Breaking it into two sed invocations is a workaround.
|
||||||
|
sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
;;
|
||||||
|
|
||||||
|
hp)
|
||||||
|
# This case exists only to let depend.m4 do its work. It works by
|
||||||
|
# looking at the text of this script. This case will never be run,
|
||||||
|
# since it is checked for above.
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
|
||||||
|
sgi)
|
||||||
|
if test "$libtool" = yes; then
|
||||||
|
"$@" "-Wp,-MDupdate,$tmpdepfile"
|
||||||
|
else
|
||||||
|
"$@" -MDupdate "$tmpdepfile"
|
||||||
|
fi
|
||||||
|
stat=$?
|
||||||
|
if test $stat -eq 0; then :
|
||||||
|
else
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
exit $stat
|
||||||
|
fi
|
||||||
|
rm -f "$depfile"
|
||||||
|
|
||||||
|
if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
|
||||||
|
echo "$object : \\" > "$depfile"
|
||||||
|
|
||||||
|
# Clip off the initial element (the dependent). Don't try to be
|
||||||
|
# clever and replace this with sed code, as IRIX sed won't handle
|
||||||
|
# lines with more than a fixed number of characters (4096 in
|
||||||
|
# IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
|
||||||
|
# the IRIX cc adds comments like `#:fec' to the end of the
|
||||||
|
# dependency line.
|
||||||
|
tr ' ' '
|
||||||
|
' < "$tmpdepfile" \
|
||||||
|
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
|
||||||
|
tr '
|
||||||
|
' ' ' >> $depfile
|
||||||
|
echo >> $depfile
|
||||||
|
|
||||||
|
# The second pass generates a dummy entry for each header file.
|
||||||
|
tr ' ' '
|
||||||
|
' < "$tmpdepfile" \
|
||||||
|
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
|
||||||
|
>> $depfile
|
||||||
|
else
|
||||||
|
# The sourcefile does not contain any dependencies, so just
|
||||||
|
# store a dummy comment line, to avoid errors with the Makefile
|
||||||
|
# "include basename.Plo" scheme.
|
||||||
|
echo "#dummy" > "$depfile"
|
||||||
|
fi
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
;;
|
||||||
|
|
||||||
|
aix)
|
||||||
|
# The C for AIX Compiler uses -M and outputs the dependencies
|
||||||
|
# in a .u file. In older versions, this file always lives in the
|
||||||
|
# current directory. Also, the AIX compiler puts `$object:' at the
|
||||||
|
# start of each line; $object doesn't have directory information.
|
||||||
|
# Version 6 uses the directory in both cases.
|
||||||
|
stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'`
|
||||||
|
tmpdepfile="$stripped.u"
|
||||||
|
if test "$libtool" = yes; then
|
||||||
|
"$@" -Wc,-M
|
||||||
|
else
|
||||||
|
"$@" -M
|
||||||
|
fi
|
||||||
|
stat=$?
|
||||||
|
|
||||||
|
if test -f "$tmpdepfile"; then :
|
||||||
|
else
|
||||||
|
stripped=`echo "$stripped" | sed 's,^.*/,,'`
|
||||||
|
tmpdepfile="$stripped.u"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test $stat -eq 0; then :
|
||||||
|
else
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
exit $stat
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test -f "$tmpdepfile"; then
|
||||||
|
outname="$stripped.o"
|
||||||
|
# Each line is of the form `foo.o: dependent.h'.
|
||||||
|
# Do two passes, one to just change these to
|
||||||
|
# `$object: dependent.h' and one to simply `dependent.h:'.
|
||||||
|
sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
|
||||||
|
sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
|
||||||
|
else
|
||||||
|
# The sourcefile does not contain any dependencies, so just
|
||||||
|
# store a dummy comment line, to avoid errors with the Makefile
|
||||||
|
# "include basename.Plo" scheme.
|
||||||
|
echo "#dummy" > "$depfile"
|
||||||
|
fi
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
;;
|
||||||
|
|
||||||
|
icc)
|
||||||
|
# Intel's C compiler understands `-MD -MF file'. However on
|
||||||
|
# icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
|
||||||
|
# ICC 7.0 will fill foo.d with something like
|
||||||
|
# foo.o: sub/foo.c
|
||||||
|
# foo.o: sub/foo.h
|
||||||
|
# which is wrong. We want:
|
||||||
|
# sub/foo.o: sub/foo.c
|
||||||
|
# sub/foo.o: sub/foo.h
|
||||||
|
# sub/foo.c:
|
||||||
|
# sub/foo.h:
|
||||||
|
# ICC 7.1 will output
|
||||||
|
# foo.o: sub/foo.c sub/foo.h
|
||||||
|
# and will wrap long lines using \ :
|
||||||
|
# foo.o: sub/foo.c ... \
|
||||||
|
# sub/foo.h ... \
|
||||||
|
# ...
|
||||||
|
|
||||||
|
"$@" -MD -MF "$tmpdepfile"
|
||||||
|
stat=$?
|
||||||
|
if test $stat -eq 0; then :
|
||||||
|
else
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
exit $stat
|
||||||
|
fi
|
||||||
|
rm -f "$depfile"
|
||||||
|
# Each line is of the form `foo.o: dependent.h',
|
||||||
|
# or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
|
||||||
|
# Do two passes, one to just change these to
|
||||||
|
# `$object: dependent.h' and one to simply `dependent.h:'.
|
||||||
|
sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
|
||||||
|
# Some versions of the HPUX 10.20 sed can't process this invocation
|
||||||
|
# correctly. Breaking it into two sed invocations is a workaround.
|
||||||
|
sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
|
||||||
|
sed -e 's/$/ :/' >> "$depfile"
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
;;
|
||||||
|
|
||||||
|
tru64)
|
||||||
|
# The Tru64 compiler uses -MD to generate dependencies as a side
|
||||||
|
# effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
|
||||||
|
# At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
|
||||||
|
# dependencies in `foo.d' instead, so we check for that too.
|
||||||
|
# Subdirectories are respected.
|
||||||
|
dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
|
||||||
|
test "x$dir" = "x$object" && dir=
|
||||||
|
base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
|
||||||
|
|
||||||
|
if test "$libtool" = yes; then
|
||||||
|
# Dependencies are output in .lo.d with libtool 1.4.
|
||||||
|
# With libtool 1.5 they are output both in $dir.libs/$base.o.d
|
||||||
|
# and in $dir.libs/$base.o.d and $dir$base.o.d. We process the
|
||||||
|
# latter, because the former will be cleaned when $dir.libs is
|
||||||
|
# erased.
|
||||||
|
tmpdepfile1="$dir.libs/$base.lo.d"
|
||||||
|
tmpdepfile2="$dir$base.o.d"
|
||||||
|
tmpdepfile3="$dir.libs/$base.d"
|
||||||
|
"$@" -Wc,-MD
|
||||||
|
else
|
||||||
|
tmpdepfile1="$dir$base.o.d"
|
||||||
|
tmpdepfile2="$dir$base.d"
|
||||||
|
tmpdepfile3="$dir$base.d"
|
||||||
|
"$@" -MD
|
||||||
|
fi
|
||||||
|
|
||||||
|
stat=$?
|
||||||
|
if test $stat -eq 0; then :
|
||||||
|
else
|
||||||
|
rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
|
||||||
|
exit $stat
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test -f "$tmpdepfile1"; then
|
||||||
|
tmpdepfile="$tmpdepfile1"
|
||||||
|
elif test -f "$tmpdepfile2"; then
|
||||||
|
tmpdepfile="$tmpdepfile2"
|
||||||
|
else
|
||||||
|
tmpdepfile="$tmpdepfile3"
|
||||||
|
fi
|
||||||
|
if test -f "$tmpdepfile"; then
|
||||||
|
sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
|
||||||
|
# That's a tab and a space in the [].
|
||||||
|
sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
|
||||||
|
else
|
||||||
|
echo "#dummy" > "$depfile"
|
||||||
|
fi
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
;;
|
||||||
|
|
||||||
|
#nosideeffect)
|
||||||
|
# This comment above is used by automake to tell side-effect
|
||||||
|
# dependency tracking mechanisms from slower ones.
|
||||||
|
|
||||||
|
dashmstdout)
|
||||||
|
# Important note: in order to support this mode, a compiler *must*
|
||||||
|
# always write the preprocessed file to stdout, regardless of -o.
|
||||||
|
"$@" || exit $?
|
||||||
|
|
||||||
|
# Remove the call to Libtool.
|
||||||
|
if test "$libtool" = yes; then
|
||||||
|
while test $1 != '--mode=compile'; do
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
shift
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Remove `-o $object'.
|
||||||
|
IFS=" "
|
||||||
|
for arg
|
||||||
|
do
|
||||||
|
case $arg in
|
||||||
|
-o)
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
$object)
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
set fnord "$@" "$arg"
|
||||||
|
shift # fnord
|
||||||
|
shift # $arg
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
test -z "$dashmflag" && dashmflag=-M
|
||||||
|
# Require at least two characters before searching for `:'
|
||||||
|
# in the target name. This is to cope with DOS-style filenames:
|
||||||
|
# a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
|
||||||
|
"$@" $dashmflag |
|
||||||
|
sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
|
||||||
|
rm -f "$depfile"
|
||||||
|
cat < "$tmpdepfile" > "$depfile"
|
||||||
|
tr ' ' '
|
||||||
|
' < "$tmpdepfile" | \
|
||||||
|
## Some versions of the HPUX 10.20 sed can't process this invocation
|
||||||
|
## correctly. Breaking it into two sed invocations is a workaround.
|
||||||
|
sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
;;
|
||||||
|
|
||||||
|
dashXmstdout)
|
||||||
|
# This case only exists to satisfy depend.m4. It is never actually
|
||||||
|
# run, as this mode is specially recognized in the preamble.
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
|
||||||
|
makedepend)
|
||||||
|
"$@" || exit $?
|
||||||
|
# Remove any Libtool call
|
||||||
|
if test "$libtool" = yes; then
|
||||||
|
while test $1 != '--mode=compile'; do
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
shift
|
||||||
|
fi
|
||||||
|
# X makedepend
|
||||||
|
shift
|
||||||
|
cleared=no
|
||||||
|
for arg in "$@"; do
|
||||||
|
case $cleared in
|
||||||
|
no)
|
||||||
|
set ""; shift
|
||||||
|
cleared=yes ;;
|
||||||
|
esac
|
||||||
|
case "$arg" in
|
||||||
|
-D*|-I*)
|
||||||
|
set fnord "$@" "$arg"; shift ;;
|
||||||
|
# Strip any option that makedepend may not understand. Remove
|
||||||
|
# the object too, otherwise makedepend will parse it as a source file.
|
||||||
|
-*|$object)
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
set fnord "$@" "$arg"; shift ;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
obj_suffix="`echo $object | sed 's/^.*\././'`"
|
||||||
|
touch "$tmpdepfile"
|
||||||
|
${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
|
||||||
|
rm -f "$depfile"
|
||||||
|
cat < "$tmpdepfile" > "$depfile"
|
||||||
|
sed '1,2d' "$tmpdepfile" | tr ' ' '
|
||||||
|
' | \
|
||||||
|
## Some versions of the HPUX 10.20 sed can't process this invocation
|
||||||
|
## correctly. Breaking it into two sed invocations is a workaround.
|
||||||
|
sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
|
||||||
|
rm -f "$tmpdepfile" "$tmpdepfile".bak
|
||||||
|
;;
|
||||||
|
|
||||||
|
cpp)
|
||||||
|
# Important note: in order to support this mode, a compiler *must*
|
||||||
|
# always write the preprocessed file to stdout.
|
||||||
|
"$@" || exit $?
|
||||||
|
|
||||||
|
# Remove the call to Libtool.
|
||||||
|
if test "$libtool" = yes; then
|
||||||
|
while test $1 != '--mode=compile'; do
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
shift
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Remove `-o $object'.
|
||||||
|
IFS=" "
|
||||||
|
for arg
|
||||||
|
do
|
||||||
|
case $arg in
|
||||||
|
-o)
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
$object)
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
set fnord "$@" "$arg"
|
||||||
|
shift # fnord
|
||||||
|
shift # $arg
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
"$@" -E |
|
||||||
|
sed -n '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
|
||||||
|
sed '$ s: \\$::' > "$tmpdepfile"
|
||||||
|
rm -f "$depfile"
|
||||||
|
echo "$object : \\" > "$depfile"
|
||||||
|
cat < "$tmpdepfile" >> "$depfile"
|
||||||
|
sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
;;
|
||||||
|
|
||||||
|
msvisualcpp)
|
||||||
|
# Important note: in order to support this mode, a compiler *must*
|
||||||
|
# always write the preprocessed file to stdout, regardless of -o,
|
||||||
|
# because we must use -o when running libtool.
|
||||||
|
"$@" || exit $?
|
||||||
|
IFS=" "
|
||||||
|
for arg
|
||||||
|
do
|
||||||
|
case "$arg" in
|
||||||
|
"-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
|
||||||
|
set fnord "$@"
|
||||||
|
shift
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
set fnord "$@" "$arg"
|
||||||
|
shift
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
"$@" -E |
|
||||||
|
sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
|
||||||
|
rm -f "$depfile"
|
||||||
|
echo "$object : \\" > "$depfile"
|
||||||
|
. "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
|
||||||
|
echo " " >> "$depfile"
|
||||||
|
. "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
;;
|
||||||
|
|
||||||
|
none)
|
||||||
|
exec "$@"
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
echo "Unknown depmode $depmode" 1>&2
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
||||||
|
# Local Variables:
|
||||||
|
# mode: shell-script
|
||||||
|
# sh-indentation: 2
|
||||||
|
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||||
|
# time-stamp-start: "scriptversion="
|
||||||
|
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||||
|
# time-stamp-end: "$"
|
||||||
|
# End:
|
106
filesave.c
Normal file
106
filesave.c
Normal file
@ -0,0 +1,106 @@
|
|||||||
|
/* --------------------------------------------------------------------- *
|
||||||
|
* filesave.c *
|
||||||
|
* --------------------------------------------------------------------- *
|
||||||
|
* This file is part of the nebula irc client *
|
||||||
|
* http://nebula-irc.sourceforge.net *
|
||||||
|
|
||||||
|
* Copyright (c) 2004-2005 Riccardo Mottola. All rights reserved. *
|
||||||
|
* mail: rmottola@users.sourceforge.net *
|
||||||
|
|
||||||
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
|
/*
|
||||||
|
Copyright (c) 2004-2005, Riccardo Mottola
|
||||||
|
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
Redistributions of source code must retain the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer.
|
||||||
|
Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer in the documentation
|
||||||
|
and/or other materials provided with the distribution.
|
||||||
|
Neither the name of "Riccardo Mottola" nor the names of its contributors
|
||||||
|
may be used to endorse or promote products derived from this software
|
||||||
|
without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||||
|
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||||
|
ARE DISCLAIMED.
|
||||||
|
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY
|
||||||
|
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||||
|
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||||
|
LOSS OF USE, DATA, OR PROFITS;´OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||||
|
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||||
|
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#include <Xm/Xm.h>
|
||||||
|
#include <Xm/Text.h>
|
||||||
|
#include <Xm/SelectioB.h>
|
||||||
|
#include <Xm/FileSB.h>
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
extern Widget outputArea;
|
||||||
|
|
||||||
|
void saveFileCbk (Widget w, XtPointer clientData, XtPointer callData);
|
||||||
|
|
||||||
|
void saveFile(Widget parent)
|
||||||
|
{
|
||||||
|
Widget selDialog;
|
||||||
|
Widget remove;
|
||||||
|
XmString theXmString;
|
||||||
|
Arg args[1];
|
||||||
|
|
||||||
|
theXmString = XM_STRING_CREATE("Save As");
|
||||||
|
XtSetArg(args[0], XmNdialogTitle, theXmString);
|
||||||
|
selDialog = XmCreateFileSelectionDialog(parent, "select", args, 1);
|
||||||
|
XtAddCallback(selDialog, XmNokCallback, saveFileCbk, NULL);
|
||||||
|
XtAddCallback(selDialog, XmNcancelCallback, saveFileCbk, NULL);
|
||||||
|
remove = XmSelectionBoxGetChild(selDialog, XmDIALOG_HELP_BUTTON);
|
||||||
|
XtUnmanageChild(remove);
|
||||||
|
XtManageChild(selDialog);
|
||||||
|
}
|
||||||
|
|
||||||
|
void saveFileCbk (Widget w, XtPointer clientData, XtPointer callData)
|
||||||
|
{
|
||||||
|
char *fileName;
|
||||||
|
XmFileSelectionBoxCallbackStruct *cbStruct;
|
||||||
|
|
||||||
|
cbStruct = (XmFileSelectionBoxCallbackStruct *)callData;
|
||||||
|
|
||||||
|
if (cbStruct->reason == XmCR_OK)
|
||||||
|
{
|
||||||
|
FILE *outFile;
|
||||||
|
char *text;
|
||||||
|
size_t textLen;
|
||||||
|
|
||||||
|
|
||||||
|
/* ##### XmSTRING_DEFAULT_CHARSET is motif 1.1 ##### */
|
||||||
|
XmStringGetLtoR(cbStruct->value, XmSTRING_DEFAULT_CHARSET, &fileName);
|
||||||
|
outFile = fopen(fileName, "w");
|
||||||
|
XtFree(fileName);
|
||||||
|
if (outFile == NULL)
|
||||||
|
{
|
||||||
|
printf("error opening file for write.\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
text = XmTextGetString(outputArea);
|
||||||
|
textLen = strlen(text);
|
||||||
|
fwrite(text, textLen, sizeof(char), outFile);
|
||||||
|
fclose(outFile);
|
||||||
|
XtFree(text);
|
||||||
|
XtUnmanageChild(w);
|
||||||
|
} else if (cbStruct->reason == XmCR_CANCEL)
|
||||||
|
{
|
||||||
|
XtUnmanageChild(w);
|
||||||
|
}
|
||||||
|
}
|
43
filesave.h
Normal file
43
filesave.h
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
/* --------------------------------------------------------------------- *
|
||||||
|
* filesave.h *
|
||||||
|
* --------------------------------------------------------------------- *
|
||||||
|
* This file is part of the nebula irc client *
|
||||||
|
* http://nebula-irc.sourceforge.net *
|
||||||
|
|
||||||
|
* Copyright (c) 2004-2005 Riccardo Mottola. All rights reserved. *
|
||||||
|
* mail: rmottola@users.sourceforge.net *
|
||||||
|
|
||||||
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
|
/*
|
||||||
|
Copyright (c) 2004-2005, Riccardo Mottola
|
||||||
|
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
Redistributions of source code must retain the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer.
|
||||||
|
Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer in the documentation
|
||||||
|
and/or other materials provided with the distribution.
|
||||||
|
Neither the name of "Riccardo Mottola" nor the names of its contributors
|
||||||
|
may be used to endorse or promote products derived from this software
|
||||||
|
without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||||
|
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||||
|
ARE DISCLAIMED.
|
||||||
|
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY
|
||||||
|
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||||
|
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||||
|
LOSS OF USE, DATA, OR PROFITS;´OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||||
|
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||||
|
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
void saveFile(Widget parent);
|
165
help.c
Normal file
165
help.c
Normal file
@ -0,0 +1,165 @@
|
|||||||
|
/* --------------------------------------------------------------------- *
|
||||||
|
* help.c *
|
||||||
|
* --------------------------------------------------------------------- *
|
||||||
|
* This file is part of the nebula irc client *
|
||||||
|
* http://nebula-irc.sourceforge.net *
|
||||||
|
|
||||||
|
* Copyright (c) 2004-2005 Riccardo Mottola. All rights reserved. *
|
||||||
|
* mail: rmottola@users.sourceforge.net *
|
||||||
|
|
||||||
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
|
/*
|
||||||
|
Copyright (c) 2004-2005, Riccardo Mottola
|
||||||
|
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
Redistributions of source code must retain the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer.
|
||||||
|
Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer in the documentation
|
||||||
|
and/or other materials provided with the distribution.
|
||||||
|
Neither the name of "Riccardo Mottola" nor the names of its contributors
|
||||||
|
may be used to endorse or promote products derived from this software
|
||||||
|
without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||||
|
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||||
|
ARE DISCLAIMED.
|
||||||
|
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY
|
||||||
|
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||||
|
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||||
|
LOSS OF USE, DATA, OR PROFITS;´OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||||
|
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||||
|
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#include <Xm/Xm.h>
|
||||||
|
#include <Xm/MessageB.h>
|
||||||
|
#include <Xm/SelectioB.h>
|
||||||
|
#include <Xm/Text.h>
|
||||||
|
#include <Xm/Form.h>
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
#include "help.h"
|
||||||
|
|
||||||
|
#ifndef XmFONTLIST_DEFAULT_TAG
|
||||||
|
#define XmFONTLIST_DEFAULT_TAG ""
|
||||||
|
#endif
|
||||||
|
|
||||||
|
extern systemStatusRecord sysState;
|
||||||
|
extern Widget aboutDlgBox;
|
||||||
|
extern Widget commandsHelpDlgBox;
|
||||||
|
|
||||||
|
void createAboutBox(Widget parent)
|
||||||
|
{
|
||||||
|
XmString theXmString;
|
||||||
|
XmString theXmString2;
|
||||||
|
char theString[256];
|
||||||
|
Arg args[2];
|
||||||
|
Widget remove;
|
||||||
|
|
||||||
|
sprintf(theString,
|
||||||
|
"Nebula\n\
|
||||||
|
an IRC Client.\n\n\
|
||||||
|
version: %s\n\
|
||||||
|
%s\n\n\
|
||||||
|
Nebula IRC is distributed under BSD.",\
|
||||||
|
CLIENT_VERSION, sysState.systemInfo);
|
||||||
|
theXmString = XM_STRING_GEN_COMP(theString);
|
||||||
|
|
||||||
|
theXmString2 = XM_STRING_CREATE("About");
|
||||||
|
XtSetArg(args[0], XmNdialogTitle, theXmString2);
|
||||||
|
XtSetArg(args[1], XmNmessageString, theXmString);
|
||||||
|
aboutDlgBox = XmCreateInformationDialog(parent, "about", args, 2);
|
||||||
|
XmStringFree(theXmString);
|
||||||
|
XmStringFree(theXmString2);
|
||||||
|
|
||||||
|
remove = XmMessageBoxGetChild(aboutDlgBox, XmDIALOG_HELP_BUTTON);
|
||||||
|
XtUnmanageChild(remove);
|
||||||
|
remove = XmMessageBoxGetChild(aboutDlgBox, XmDIALOG_CANCEL_BUTTON);
|
||||||
|
XtUnmanageChild(remove);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void displayAboutBox()
|
||||||
|
{
|
||||||
|
XtManageChild(aboutDlgBox);
|
||||||
|
}
|
||||||
|
|
||||||
|
void createCommandsHelpBox(Widget parent)
|
||||||
|
{
|
||||||
|
XmString theXmString;
|
||||||
|
Arg args[8];
|
||||||
|
int argcount;
|
||||||
|
Widget remove;
|
||||||
|
Widget textArea;
|
||||||
|
Widget form;
|
||||||
|
|
||||||
|
argcount = 0;
|
||||||
|
theXmString = XM_STRING_CREATE("Help");
|
||||||
|
XtSetArg(args[argcount], XmNdialogTitle, theXmString); argcount++;
|
||||||
|
XtSetArg(args[argcount], XmNautoUnmanage, True); argcount++;
|
||||||
|
commandsHelpDlgBox = XmCreatePromptDialog(parent, "help", args, argcount);
|
||||||
|
XmStringFree(theXmString);
|
||||||
|
|
||||||
|
/* Now get rid of the things we don't want */
|
||||||
|
remove = XmSelectionBoxGetChild(commandsHelpDlgBox, XmDIALOG_SELECTION_LABEL);
|
||||||
|
XtUnmanageChild(remove);
|
||||||
|
remove = XmSelectionBoxGetChild(commandsHelpDlgBox, XmDIALOG_TEXT);
|
||||||
|
XtUnmanageChild(remove);
|
||||||
|
remove = XmSelectionBoxGetChild(commandsHelpDlgBox, XmDIALOG_HELP_BUTTON);
|
||||||
|
XtUnmanageChild(remove);
|
||||||
|
remove = XmSelectionBoxGetChild(commandsHelpDlgBox, XmDIALOG_CANCEL_BUTTON);
|
||||||
|
XtUnmanageChild(remove);
|
||||||
|
|
||||||
|
form = XtVaCreateWidget("form", xmFormWidgetClass, commandsHelpDlgBox, NULL);
|
||||||
|
argcount = 0;
|
||||||
|
XtSetArg(args[argcount], XmNeditable, False); argcount++;
|
||||||
|
XtSetArg(args[argcount], XmNeditMode, XmMULTI_LINE_EDIT); argcount++;
|
||||||
|
XtSetArg(args[argcount], XmNrows, 10); argcount++;
|
||||||
|
XtSetArg(args[argcount], XmNcolumns, 50); argcount++;
|
||||||
|
XtSetArg(args[argcount], XmNtopAttachment, XmATTACH_FORM); argcount++;
|
||||||
|
XtSetArg(args[argcount], XmNleftAttachment, XmATTACH_FORM); argcount++;
|
||||||
|
XtSetArg(args[argcount], XmNbottomAttachment, XmATTACH_FORM); argcount++;
|
||||||
|
XtSetArg(args[argcount], XmNrightAttachment, XmATTACH_FORM); argcount++;
|
||||||
|
textArea = XmCreateScrolledText(form, "output", args, argcount);
|
||||||
|
|
||||||
|
if (textArea == NULL)
|
||||||
|
perror("textArea: ");
|
||||||
|
XtManageChild(textArea);
|
||||||
|
|
||||||
|
XtManageChild(form);
|
||||||
|
|
||||||
|
/* now add the help text */
|
||||||
|
{
|
||||||
|
XmTextInsert(textArea, XmTextGetLastPosition(textArea), "/deop NICK: removes op (shortcut for mode)");
|
||||||
|
XmTextInsert(textArea, XmTextGetLastPosition(textArea), "/mode CHANNEL {[+|-]|o|p|s|i|t|n|b|v} [<limit>] [USER] [BAN MASK] : change channel mode\n");
|
||||||
|
XmTextInsert(textArea, XmTextGetLastPosition(textArea), "/mode USER {[+|-]|i|w|s|o} : change user mode\n");
|
||||||
|
XmTextInsert(textArea, XmTextGetLastPosition(textArea), "/msg NICKNAME: sends private message (remember: channels are like users with # or & at the beginning)\n");
|
||||||
|
XmTextInsert(textArea, XmTextGetLastPosition(textArea), "/nick NICKNAME: change nickname\n");
|
||||||
|
XmTextInsert(textArea, XmTextGetLastPosition(textArea), "/ns command: shortcut for /msg nickserv command\n");
|
||||||
|
XmTextInsert(textArea, XmTextGetLastPosition(textArea), "/op NICK: gives op (shortcut for mode)\n");
|
||||||
|
XmTextInsert(textArea, XmTextGetLastPosition(textArea), "/query NICKNAME: start private conversation (empty nick ends)\n");
|
||||||
|
XmTextInsert(textArea, XmTextGetLastPosition(textArea), "/quit: quit nebula\n");
|
||||||
|
XmTextInsert(textArea, XmTextGetLastPosition(textArea), "/server SERVERNAME: connect to server\n");
|
||||||
|
XmTextInsert(textArea, XmTextGetLastPosition(textArea), "/whois NICKNAME: get user information from server\n");
|
||||||
|
|
||||||
|
XmTextInsert(textArea, XmTextGetLastPosition(textArea), "\nCTCP commands\n");
|
||||||
|
XmTextInsert(textArea, XmTextGetLastPosition(textArea), "/ctcp NICKNAME version: requests client versioni\n");
|
||||||
|
XmTextInsert(textArea, XmTextGetLastPosition(textArea), "/me ACTION: sends an action (typically a message starting with the nickname)");
|
||||||
|
XmTextSetInsertionPosition(textArea, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void displayCommandsHelpBox()
|
||||||
|
{
|
||||||
|
XtManageChild(commandsHelpDlgBox);
|
||||||
|
}
|
47
help.h
Normal file
47
help.h
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
/* --------------------------------------------------------------------- *
|
||||||
|
* help.h *
|
||||||
|
* --------------------------------------------------------------------- *
|
||||||
|
* This file is part of the nebula irc client *
|
||||||
|
* http://nebula-irc.sourceforge.net *
|
||||||
|
|
||||||
|
* Copyright (c) 2004 Riccardo Mottola. All rights reserved. *
|
||||||
|
* mail: rmottola@users.sourceforge.net *
|
||||||
|
|
||||||
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
|
/*
|
||||||
|
Copyright (c) 2004, Riccardo Mottola
|
||||||
|
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
Redistributions of source code must retain the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer.
|
||||||
|
Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer in the documentation
|
||||||
|
and/or other materials provided with the distribution.
|
||||||
|
Neither the name of "Riccardo Mottola" nor the names of its contributors
|
||||||
|
may be used to endorse or promote products derived from this software
|
||||||
|
without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||||
|
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||||
|
ARE DISCLAIMED.
|
||||||
|
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY
|
||||||
|
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||||
|
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||||
|
LOSS OF USE, DATA, OR PROFITS;´OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||||
|
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||||
|
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
void createAboutBox(Widget parent);
|
||||||
|
void aboutOkCbk();
|
||||||
|
void displayAboutBox();
|
||||||
|
void createCommandsHelpBox(Widget parent);
|
||||||
|
void displayCommandsHelpBox();
|
322
install-sh
Executable file
322
install-sh
Executable file
@ -0,0 +1,322 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# install - install a program, script, or datafile
|
||||||
|
|
||||||
|
scriptversion=2004-07-05.00
|
||||||
|
|
||||||
|
# This originates from X11R5 (mit/util/scripts/install.sh), which was
|
||||||
|
# later released in X11R6 (xc/config/util/install.sh) with the
|
||||||
|
# following copyright and license.
|
||||||
|
#
|
||||||
|
# Copyright (C) 1994 X Consortium
|
||||||
|
#
|
||||||
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
# of this software and associated documentation files (the "Software"), to
|
||||||
|
# deal in the Software without restriction, including without limitation the
|
||||||
|
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
||||||
|
# sell copies of the Software, and to permit persons to whom the Software is
|
||||||
|
# furnished to do so, subject to the following conditions:
|
||||||
|
#
|
||||||
|
# The above copyright notice and this permission notice shall be included in
|
||||||
|
# all copies or substantial portions of the Software.
|
||||||
|
#
|
||||||
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
||||||
|
# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
|
||||||
|
# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
#
|
||||||
|
# Except as contained in this notice, the name of the X Consortium shall not
|
||||||
|
# be used in advertising or otherwise to promote the sale, use or other deal-
|
||||||
|
# ings in this Software without prior written authorization from the X Consor-
|
||||||
|
# tium.
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# FSF changes to this file are in the public domain.
|
||||||
|
#
|
||||||
|
# Calling this script install-sh is preferred over install.sh, to prevent
|
||||||
|
# `make' implicit rules from creating a file called install from it
|
||||||
|
# when there is no Makefile.
|
||||||
|
#
|
||||||
|
# This script is compatible with the BSD install script, but was written
|
||||||
|
# from scratch. It can only install one file at a time, a restriction
|
||||||
|
# shared with many OS's install programs.
|
||||||
|
|
||||||
|
# set DOITPROG to echo to test this script
|
||||||
|
|
||||||
|
# Don't use :- since 4.3BSD and earlier shells don't like it.
|
||||||
|
doit="${DOITPROG-}"
|
||||||
|
|
||||||
|
# put in absolute paths if you don't have them in your path; or use env. vars.
|
||||||
|
|
||||||
|
mvprog="${MVPROG-mv}"
|
||||||
|
cpprog="${CPPROG-cp}"
|
||||||
|
chmodprog="${CHMODPROG-chmod}"
|
||||||
|
chownprog="${CHOWNPROG-chown}"
|
||||||
|
chgrpprog="${CHGRPPROG-chgrp}"
|
||||||
|
stripprog="${STRIPPROG-strip}"
|
||||||
|
rmprog="${RMPROG-rm}"
|
||||||
|
mkdirprog="${MKDIRPROG-mkdir}"
|
||||||
|
|
||||||
|
chmodcmd="$chmodprog 0755"
|
||||||
|
chowncmd=
|
||||||
|
chgrpcmd=
|
||||||
|
stripcmd=
|
||||||
|
rmcmd="$rmprog -f"
|
||||||
|
mvcmd="$mvprog"
|
||||||
|
src=
|
||||||
|
dst=
|
||||||
|
dir_arg=
|
||||||
|
dstarg=
|
||||||
|
no_target_directory=
|
||||||
|
|
||||||
|
usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
|
||||||
|
or: $0 [OPTION]... SRCFILES... DIRECTORY
|
||||||
|
or: $0 [OPTION]... -t DIRECTORY SRCFILES...
|
||||||
|
or: $0 [OPTION]... -d DIRECTORIES...
|
||||||
|
|
||||||
|
In the 1st form, copy SRCFILE to DSTFILE.
|
||||||
|
In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
|
||||||
|
In the 4th, create DIRECTORIES.
|
||||||
|
|
||||||
|
Options:
|
||||||
|
-c (ignored)
|
||||||
|
-d create directories instead of installing files.
|
||||||
|
-g GROUP $chgrpprog installed files to GROUP.
|
||||||
|
-m MODE $chmodprog installed files to MODE.
|
||||||
|
-o USER $chownprog installed files to USER.
|
||||||
|
-s $stripprog installed files.
|
||||||
|
-t DIRECTORY install into DIRECTORY.
|
||||||
|
-T report an error if DSTFILE is a directory.
|
||||||
|
--help display this help and exit.
|
||||||
|
--version display version info and exit.
|
||||||
|
|
||||||
|
Environment variables override the default commands:
|
||||||
|
CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG
|
||||||
|
"
|
||||||
|
|
||||||
|
while test -n "$1"; do
|
||||||
|
case $1 in
|
||||||
|
-c) shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
-d) dir_arg=true
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
-g) chgrpcmd="$chgrpprog $2"
|
||||||
|
shift
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
--help) echo "$usage"; exit 0;;
|
||||||
|
|
||||||
|
-m) chmodcmd="$chmodprog $2"
|
||||||
|
shift
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
-o) chowncmd="$chownprog $2"
|
||||||
|
shift
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
-s) stripcmd=$stripprog
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
-t) dstarg=$2
|
||||||
|
shift
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
-T) no_target_directory=true
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
--version) echo "$0 $scriptversion"; exit 0;;
|
||||||
|
|
||||||
|
*) # When -d is used, all remaining arguments are directories to create.
|
||||||
|
# When -t is used, the destination is already specified.
|
||||||
|
test -n "$dir_arg$dstarg" && break
|
||||||
|
# Otherwise, the last argument is the destination. Remove it from $@.
|
||||||
|
for arg
|
||||||
|
do
|
||||||
|
if test -n "$dstarg"; then
|
||||||
|
# $@ is not empty: it contains at least $arg.
|
||||||
|
set fnord "$@" "$dstarg"
|
||||||
|
shift # fnord
|
||||||
|
fi
|
||||||
|
shift # arg
|
||||||
|
dstarg=$arg
|
||||||
|
done
|
||||||
|
break;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
if test -z "$1"; then
|
||||||
|
if test -z "$dir_arg"; then
|
||||||
|
echo "$0: no input file specified." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
# It's OK to call `install-sh -d' without argument.
|
||||||
|
# This can happen when creating conditional directories.
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
for src
|
||||||
|
do
|
||||||
|
# Protect names starting with `-'.
|
||||||
|
case $src in
|
||||||
|
-*) src=./$src ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if test -n "$dir_arg"; then
|
||||||
|
dst=$src
|
||||||
|
src=
|
||||||
|
|
||||||
|
if test -d "$dst"; then
|
||||||
|
mkdircmd=:
|
||||||
|
chmodcmd=
|
||||||
|
else
|
||||||
|
mkdircmd=$mkdirprog
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
# Waiting for this to be detected by the "$cpprog $src $dsttmp" command
|
||||||
|
# might cause directories to be created, which would be especially bad
|
||||||
|
# if $src (and thus $dsttmp) contains '*'.
|
||||||
|
if test ! -f "$src" && test ! -d "$src"; then
|
||||||
|
echo "$0: $src does not exist." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test -z "$dstarg"; then
|
||||||
|
echo "$0: no destination specified." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
dst=$dstarg
|
||||||
|
# Protect names starting with `-'.
|
||||||
|
case $dst in
|
||||||
|
-*) dst=./$dst ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# If destination is a directory, append the input filename; won't work
|
||||||
|
# if double slashes aren't ignored.
|
||||||
|
if test -d "$dst"; then
|
||||||
|
if test -n "$no_target_directory"; then
|
||||||
|
echo "$0: $dstarg: Is a directory" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
dst=$dst/`basename "$src"`
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# This sed command emulates the dirname command.
|
||||||
|
dstdir=`echo "$dst" | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
|
||||||
|
|
||||||
|
# Make sure that the destination directory exists.
|
||||||
|
|
||||||
|
# Skip lots of stat calls in the usual case.
|
||||||
|
if test ! -d "$dstdir"; then
|
||||||
|
defaultIFS='
|
||||||
|
'
|
||||||
|
IFS="${IFS-$defaultIFS}"
|
||||||
|
|
||||||
|
oIFS=$IFS
|
||||||
|
# Some sh's can't handle IFS=/ for some reason.
|
||||||
|
IFS='%'
|
||||||
|
set - `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'`
|
||||||
|
IFS=$oIFS
|
||||||
|
|
||||||
|
pathcomp=
|
||||||
|
|
||||||
|
while test $# -ne 0 ; do
|
||||||
|
pathcomp=$pathcomp$1
|
||||||
|
shift
|
||||||
|
if test ! -d "$pathcomp"; then
|
||||||
|
$mkdirprog "$pathcomp"
|
||||||
|
# mkdir can fail with a `File exist' error in case several
|
||||||
|
# install-sh are creating the directory concurrently. This
|
||||||
|
# is OK.
|
||||||
|
test -d "$pathcomp" || exit
|
||||||
|
fi
|
||||||
|
pathcomp=$pathcomp/
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test -n "$dir_arg"; then
|
||||||
|
$doit $mkdircmd "$dst" \
|
||||||
|
&& { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \
|
||||||
|
&& { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \
|
||||||
|
&& { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \
|
||||||
|
&& { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; }
|
||||||
|
|
||||||
|
else
|
||||||
|
dstfile=`basename "$dst"`
|
||||||
|
|
||||||
|
# Make a couple of temp file names in the proper directory.
|
||||||
|
dsttmp=$dstdir/_inst.$$_
|
||||||
|
rmtmp=$dstdir/_rm.$$_
|
||||||
|
|
||||||
|
# Trap to clean up those temp files at exit.
|
||||||
|
trap 'status=$?; rm -f "$dsttmp" "$rmtmp" && exit $status' 0
|
||||||
|
trap '(exit $?); exit' 1 2 13 15
|
||||||
|
|
||||||
|
# Copy the file name to the temp name.
|
||||||
|
$doit $cpprog "$src" "$dsttmp" &&
|
||||||
|
|
||||||
|
# and set any options; do chmod last to preserve setuid bits.
|
||||||
|
#
|
||||||
|
# If any of these fail, we abort the whole thing. If we want to
|
||||||
|
# ignore errors from any of these, just make sure not to ignore
|
||||||
|
# errors from the above "$doit $cpprog $src $dsttmp" command.
|
||||||
|
#
|
||||||
|
{ test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \
|
||||||
|
&& { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \
|
||||||
|
&& { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \
|
||||||
|
&& { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } &&
|
||||||
|
|
||||||
|
# Now rename the file to the real destination.
|
||||||
|
{ $doit $mvcmd -f "$dsttmp" "$dstdir/$dstfile" 2>/dev/null \
|
||||||
|
|| {
|
||||||
|
# The rename failed, perhaps because mv can't rename something else
|
||||||
|
# to itself, or perhaps because mv is so ancient that it does not
|
||||||
|
# support -f.
|
||||||
|
|
||||||
|
# Now remove or move aside any old file at destination location.
|
||||||
|
# We try this two ways since rm can't unlink itself on some
|
||||||
|
# systems and the destination file might be busy for other
|
||||||
|
# reasons. In this case, the final cleanup might fail but the new
|
||||||
|
# file should still install successfully.
|
||||||
|
{
|
||||||
|
if test -f "$dstdir/$dstfile"; then
|
||||||
|
$doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \
|
||||||
|
|| $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \
|
||||||
|
|| {
|
||||||
|
echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2
|
||||||
|
(exit 1); exit
|
||||||
|
}
|
||||||
|
else
|
||||||
|
:
|
||||||
|
fi
|
||||||
|
} &&
|
||||||
|
|
||||||
|
# Now rename the file to the real destination.
|
||||||
|
$doit $mvcmd "$dsttmp" "$dstdir/$dstfile"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
fi || { (exit 1); exit; }
|
||||||
|
done
|
||||||
|
|
||||||
|
# The final little trick to "correctly" pass the exit status to the exit trap.
|
||||||
|
{
|
||||||
|
(exit 0); exit
|
||||||
|
}
|
||||||
|
|
||||||
|
# Local variables:
|
||||||
|
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||||
|
# time-stamp-start: "scriptversion="
|
||||||
|
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||||
|
# time-stamp-end: "$"
|
||||||
|
# End:
|
851
interpreter.c
Normal file
851
interpreter.c
Normal file
@ -0,0 +1,851 @@
|
|||||||
|
/* --------------------------------------------------------------------- *
|
||||||
|
* interpreter.c *
|
||||||
|
* --------------------------------------------------------------------- *
|
||||||
|
* This file is part of the nebula irc client *
|
||||||
|
* http://nebula-irc.sourceforge.net *
|
||||||
|
|
||||||
|
* Copyright (c) 2004-2005 Riccardo Mottola. All rights reserved. *
|
||||||
|
* mail: rmottola@users.sourceforge.net *
|
||||||
|
|
||||||
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
|
/*
|
||||||
|
Copyright (c) 2004-2005, Riccardo Mottola
|
||||||
|
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
Redistributions of source code must retain the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer.
|
||||||
|
Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer in the documentation
|
||||||
|
and/or other materials provided with the distribution.
|
||||||
|
Neither the name of "Riccardo Mottola" nor the names of its contributors
|
||||||
|
may be used to endorse or promote products derived from this software
|
||||||
|
without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||||
|
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||||
|
ARE DISCLAIMED.
|
||||||
|
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY
|
||||||
|
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||||
|
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||||
|
LOSS OF USE, DATA, OR PROFITS;´OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||||
|
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||||
|
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
#include "interpreter.h"
|
||||||
|
#include "network.h"
|
||||||
|
#include "userlist.h"
|
||||||
|
|
||||||
|
extern systemStatusRecord sysState;
|
||||||
|
|
||||||
|
extern Widget userList; /* user list widget */
|
||||||
|
|
||||||
|
void interpretCommand(char *cmd)
|
||||||
|
{
|
||||||
|
char token1[MAX_INPUT_LEN+1];
|
||||||
|
char token2[MAX_INPUT_LEN+1];
|
||||||
|
char token3[MAX_INPUT_LEN+1];
|
||||||
|
|
||||||
|
if (strlen(cmd) <= 0)
|
||||||
|
return;
|
||||||
|
if (cmd[0] == '/')
|
||||||
|
{
|
||||||
|
int cmdCursor;
|
||||||
|
int i, k;
|
||||||
|
int cmdLen;
|
||||||
|
int token2Start;
|
||||||
|
|
||||||
|
cmdLen = strlen(cmd);
|
||||||
|
|
||||||
|
#ifdef DEBUG
|
||||||
|
assert(cmdLen <= MAX_INPUT_LEN);
|
||||||
|
#endif
|
||||||
|
cmdCursor = 1;
|
||||||
|
i = 0;
|
||||||
|
while (cmdCursor < cmdLen && cmd[cmdCursor] != ' ')
|
||||||
|
token1[i++] = cmd[cmdCursor++];
|
||||||
|
token1[i] = '\0';
|
||||||
|
#ifdef DEBUG
|
||||||
|
printf("Token 1: |%s|\n", token1);
|
||||||
|
#endif
|
||||||
|
k = 0;
|
||||||
|
cmdCursor++;
|
||||||
|
token2Start = cmdCursor;
|
||||||
|
while (cmdCursor < cmdLen && cmd[cmdCursor] != ' ')
|
||||||
|
token2[k++] = cmd[cmdCursor++];
|
||||||
|
token2[k] = '\0';
|
||||||
|
#ifdef DEBUG
|
||||||
|
printf("Token 2: |%s|\n", token2);
|
||||||
|
#endif
|
||||||
|
if (!strcmp(token1, "deop"))
|
||||||
|
{
|
||||||
|
if (strlen(token2) > 0)
|
||||||
|
doMode(sysState.currentChannel, "-o", token2, NULL, NULL);
|
||||||
|
} else if (!strcmp(token1, "msg"))
|
||||||
|
{
|
||||||
|
if (strlen(token2) > 0)
|
||||||
|
{
|
||||||
|
int l;
|
||||||
|
l = 0;
|
||||||
|
cmdCursor++;
|
||||||
|
while (cmdCursor < cmdLen)
|
||||||
|
token3[l++] = cmd[cmdCursor++];
|
||||||
|
token3[l] = '\0';
|
||||||
|
if (strlen(token3) > 0)
|
||||||
|
doPrivateMsg(token2, token3);
|
||||||
|
else
|
||||||
|
appendText("You fool, no message specified\n");
|
||||||
|
} else
|
||||||
|
appendText("You fool, no victim!\n");
|
||||||
|
} else if (!strcmp(token1, "nick"))
|
||||||
|
{
|
||||||
|
if (strlen(token2) > 0)
|
||||||
|
{
|
||||||
|
renameUserInList(sysState.myNick, token2, userList);
|
||||||
|
doNick(token2);
|
||||||
|
}
|
||||||
|
} else if (!strcmp(token1, "join"))
|
||||||
|
{
|
||||||
|
if (strlen(token2) > 0)
|
||||||
|
{
|
||||||
|
doJoin(token2);
|
||||||
|
}
|
||||||
|
} else if (!strcmp(token1, "ns"))
|
||||||
|
{
|
||||||
|
if (strlen(token2) > 0)
|
||||||
|
doPrivateMsg("nickserv", cmd+token2Start);
|
||||||
|
else
|
||||||
|
appendText("You fool, no message specified\n");
|
||||||
|
} else if (!strcmp(token1, "mode"))
|
||||||
|
{
|
||||||
|
char token4[MAX_INPUT_LEN+1];
|
||||||
|
char token5[MAX_INPUT_LEN+1];
|
||||||
|
char token6[MAX_INPUT_LEN+1];
|
||||||
|
|
||||||
|
token4[0] = '\0';
|
||||||
|
token5[0] = '\0';
|
||||||
|
token6[0] = '\0';
|
||||||
|
if (strlen(token2) > 0)
|
||||||
|
{
|
||||||
|
int l;
|
||||||
|
l = 0;
|
||||||
|
cmdCursor++;
|
||||||
|
while (cmdCursor < cmdLen && cmd[cmdCursor] != ' ')
|
||||||
|
token3[l++] = cmd[cmdCursor++];
|
||||||
|
token3[l] = '\0';
|
||||||
|
#ifdef DEBUG
|
||||||
|
printf("token3: %s\n", token3);
|
||||||
|
#endif
|
||||||
|
if (cmdCursor < cmdLen)
|
||||||
|
{
|
||||||
|
cmdCursor++;
|
||||||
|
l = 0;
|
||||||
|
while (cmdCursor < cmdLen && cmd[cmdCursor] != ' ')
|
||||||
|
token4[l++] = cmd[cmdCursor++];
|
||||||
|
token4[l] = '\0';
|
||||||
|
#ifdef DEBUG
|
||||||
|
printf("token4: %s\n", token3);
|
||||||
|
#endif
|
||||||
|
if (cmdCursor < cmdLen)
|
||||||
|
{
|
||||||
|
cmdCursor++;
|
||||||
|
l = 0;
|
||||||
|
while (cmdCursor < cmdLen && cmd[cmdCursor] != ' ')
|
||||||
|
token5[l++] = cmd[cmdCursor++];
|
||||||
|
token5[l] = '\0';
|
||||||
|
#ifdef DEBUG
|
||||||
|
printf("token5: %s\n", token5);
|
||||||
|
#endif
|
||||||
|
if (cmdCursor < cmdLen)
|
||||||
|
{
|
||||||
|
cmdCursor++;
|
||||||
|
l = 0;
|
||||||
|
while (cmdCursor < cmdLen)
|
||||||
|
token6[l++] = cmd[cmdCursor++];
|
||||||
|
token6[l] = '\0';
|
||||||
|
#ifdef DEBUG
|
||||||
|
printf("token6: %s\n", token6);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
doMode(token2, token3, token4, token5, token6);
|
||||||
|
} else
|
||||||
|
appendText("You fool, no channel or user!\n");
|
||||||
|
} else if (!strcmp(token1, "op"))
|
||||||
|
{
|
||||||
|
if (strlen(token2) > 0)
|
||||||
|
doMode(sysState.currentChannel, "+o", token2, NULL, NULL);
|
||||||
|
} else if (!strcmp(token1, "part"))
|
||||||
|
{
|
||||||
|
if (strlen(token2) > 0)
|
||||||
|
{
|
||||||
|
removeAllUsersFromList(userList);
|
||||||
|
doPart(token2);
|
||||||
|
} else
|
||||||
|
appendText("PART: must specify a channel\n");
|
||||||
|
} else if (!strcmp(token1, "query"))
|
||||||
|
{
|
||||||
|
if (sysState.isConnected)
|
||||||
|
{
|
||||||
|
if (strlen(token2) > 0)
|
||||||
|
{
|
||||||
|
sysState.isInQuery = YES;
|
||||||
|
strcpy(sysState.currentQuery, token2);
|
||||||
|
} else
|
||||||
|
sysState.isInQuery = NO;
|
||||||
|
}
|
||||||
|
} else if (!strcmp(token1, "user"))
|
||||||
|
{
|
||||||
|
doUser(sysState.myUnixname, sysState.myHostName, sysState.serverName, sysState.myName);
|
||||||
|
} else if (!strcmp(token1, "whois"))
|
||||||
|
{
|
||||||
|
if (strlen(token2) > 0)
|
||||||
|
doWhois(token2);
|
||||||
|
} else if (!strcmp(token1, "me"))
|
||||||
|
{
|
||||||
|
doCTCPAction(sysState.currentChannel, cmd + token2Start);
|
||||||
|
} else if (!strcmp(token1, "ctcp"))
|
||||||
|
{ /* CTCP commands */
|
||||||
|
int l;
|
||||||
|
l = 0;
|
||||||
|
cmdCursor++;
|
||||||
|
while (cmdCursor < cmdLen)
|
||||||
|
token3[l++] = cmd[cmdCursor++];
|
||||||
|
token3[l] = '\0';
|
||||||
|
if (strlen(token3) > 0)
|
||||||
|
{
|
||||||
|
printf("Ctcp command: %s, recipient: %s\n", token3, token2);
|
||||||
|
if (!strcmp(token3, "version"))
|
||||||
|
{
|
||||||
|
doCTCPVersion(token2);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
printf("You fool, no command specified\n");
|
||||||
|
} else if (!strcmp(token1, "quit"))
|
||||||
|
{
|
||||||
|
quitApplication();
|
||||||
|
} else if (!strcmp(token1, "server"))
|
||||||
|
{
|
||||||
|
if (strlen(token2) > 0)
|
||||||
|
connectToServer(token2, 6666);
|
||||||
|
} else
|
||||||
|
{ /* unrecongized command */
|
||||||
|
appendText("Unknown command: ");
|
||||||
|
appendText(token1);
|
||||||
|
appendText("\n");
|
||||||
|
}
|
||||||
|
} else if (sysState.isConnected)
|
||||||
|
{
|
||||||
|
if (sysState.isInQuery)
|
||||||
|
doPrivateMsg(sysState.currentQuery, cmd);
|
||||||
|
else if (sysState.isInChannel)
|
||||||
|
doPrivateMsg(sysState.currentChannel, cmd);
|
||||||
|
else
|
||||||
|
appendText("No command given and not explicit state.\n");
|
||||||
|
} else
|
||||||
|
appendText("Not connected\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
void interpretMessage(char *inBuff)
|
||||||
|
{
|
||||||
|
if (inBuff[0] == ':')
|
||||||
|
{
|
||||||
|
char token1[MAX_COMMAND_LEN+1];
|
||||||
|
char token2[MAX_COMMAND_LEN+1];
|
||||||
|
char token3[MAX_COMMAND_LEN+1];
|
||||||
|
char token4[MAX_COMMAND_LEN+1];
|
||||||
|
char token5[MAX_COMMAND_LEN+1];
|
||||||
|
int k;
|
||||||
|
int buffCursor;
|
||||||
|
int buffLen;
|
||||||
|
|
||||||
|
buffLen = strlen(inBuff);
|
||||||
|
#ifdef DEBUG
|
||||||
|
assert(buffLen <= MAX_COMMAND_LEN);
|
||||||
|
#endif
|
||||||
|
k = 0;
|
||||||
|
buffCursor = 1;
|
||||||
|
while (buffCursor < buffLen && inBuff[buffCursor] != ' ')
|
||||||
|
token1[k++] = inBuff[buffCursor++];
|
||||||
|
token1[k] = '\0';
|
||||||
|
if (strlen(token1) > 0)
|
||||||
|
{
|
||||||
|
int l;
|
||||||
|
|
||||||
|
#ifdef DEBUG
|
||||||
|
printf ("sender is: |%s|\n", token1);
|
||||||
|
#endif
|
||||||
|
l = 0;
|
||||||
|
buffCursor++;
|
||||||
|
while (buffCursor < buffLen && inBuff[buffCursor] != ' ')
|
||||||
|
token2[l++] = inBuff[buffCursor++];
|
||||||
|
token2[l] = '\0';
|
||||||
|
if (strlen(token2) > 0)
|
||||||
|
{
|
||||||
|
int m;
|
||||||
|
int token3start;
|
||||||
|
|
||||||
|
#ifdef DEBUG
|
||||||
|
printf ("command is: |%s|\n", token2);
|
||||||
|
#endif
|
||||||
|
m = 0;
|
||||||
|
buffCursor++;
|
||||||
|
token3start = buffCursor;
|
||||||
|
while (buffCursor < buffLen && inBuff[buffCursor] != ' ')
|
||||||
|
token3[m++] = inBuff[buffCursor++];
|
||||||
|
token3[m] = '\0';
|
||||||
|
if (strlen(token3) > 0)
|
||||||
|
{
|
||||||
|
int n;
|
||||||
|
int token4start;
|
||||||
|
|
||||||
|
#ifdef DEBUG
|
||||||
|
printf ("recipient is: |%s|\n", token3);
|
||||||
|
#endif
|
||||||
|
n = 0;
|
||||||
|
buffCursor++;
|
||||||
|
if (inBuff[buffCursor] == ':')
|
||||||
|
buffCursor++;
|
||||||
|
token4start = buffCursor;
|
||||||
|
while (buffCursor < buffLen)
|
||||||
|
token4[n++] = inBuff[buffCursor++];
|
||||||
|
token4[n] = '\0';
|
||||||
|
#ifdef DEBUG
|
||||||
|
printf("full rest token4: |%s|\n", inBuff+token4start);
|
||||||
|
printf("Token4 is: |%s|, %d\n", token4, strlen(token4));
|
||||||
|
#endif
|
||||||
|
if (!strcmp(token2, "PRIVMSG"))
|
||||||
|
{
|
||||||
|
if (token4[0] == '\001')
|
||||||
|
{
|
||||||
|
int tok4Len;
|
||||||
|
|
||||||
|
tok4Len = strlen(token4);
|
||||||
|
if (token4[tok4Len-1] == '\001')
|
||||||
|
{
|
||||||
|
#ifdef DEBUG
|
||||||
|
printf ("should chop last 001\n");
|
||||||
|
#endif
|
||||||
|
token4[tok4Len-1] = '\0';
|
||||||
|
tok4Len--;
|
||||||
|
}
|
||||||
|
n = 0;
|
||||||
|
while (n < tok4Len && token4[n] != ' ')
|
||||||
|
n++;
|
||||||
|
if (token4[n] == ' ')
|
||||||
|
{
|
||||||
|
strcpy(token5, token4 + n + 1);
|
||||||
|
token4[n] = '\0';
|
||||||
|
#ifdef DEBUG
|
||||||
|
printf("Token5 is: |%s|\n", token5);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
if (!strcmp(token4, "\001ACTION"))
|
||||||
|
{
|
||||||
|
handleAction(token1, token5);
|
||||||
|
} else if (!strcmp(inBuff+token4start, "\001VERSION\001"))
|
||||||
|
{
|
||||||
|
handleCTCPVersion(token1);
|
||||||
|
}
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
if (sysState.isInChannel && (token3[0] == '#'|| token3[0] == '&'))
|
||||||
|
handleChannelMessage(token1, token4);
|
||||||
|
else
|
||||||
|
handlePrivateMessage(token1, token4);
|
||||||
|
}
|
||||||
|
} else if (!strcmp(token2, "NICK"))
|
||||||
|
{
|
||||||
|
char oldNick[MAX_NICK_LEN];
|
||||||
|
char *nickEnd;
|
||||||
|
|
||||||
|
nickEnd = strchr(token1, '!');
|
||||||
|
if (nickEnd)
|
||||||
|
{
|
||||||
|
strncpy(oldNick, token1, nickEnd-token1);
|
||||||
|
oldNick[nickEnd-token1] = '\0';
|
||||||
|
/* we crop out the leading : form token3 */
|
||||||
|
#ifdef DEBUG
|
||||||
|
printf("change %s to %s\n", oldNick, token3+1);
|
||||||
|
#endif
|
||||||
|
renameUserInList(oldNick, token3+1, userList);
|
||||||
|
}
|
||||||
|
} else if (!strcmp(token2, "NOTICE"))
|
||||||
|
{
|
||||||
|
handleNotice(token1, token4);
|
||||||
|
} else if (!strcmp(token2, "JOIN"))
|
||||||
|
{
|
||||||
|
handleJoinNotify(token1, token3);
|
||||||
|
} else if (!strcmp(token2, "MODE"))
|
||||||
|
{
|
||||||
|
handleMode(token1, token3, token4);
|
||||||
|
} else if (!strcmp(token2, "QUIT"))
|
||||||
|
{
|
||||||
|
handleQuitNotify(token1, inBuff+token3start+1);
|
||||||
|
} else if (!strcmp(token2, "PART"))
|
||||||
|
{
|
||||||
|
handlePartNotify(token1, inBuff+token3start+1);
|
||||||
|
} else if (!strcmp(token2, "001"))
|
||||||
|
{
|
||||||
|
handleCommandResponse(RPL_WELCOME, token4);
|
||||||
|
} else if (!strcmp(token2, "311"))
|
||||||
|
{
|
||||||
|
handleCommandResponse(RPL_WHOISUSER, token4);
|
||||||
|
} else if (!strcmp(token2, "312"))
|
||||||
|
{
|
||||||
|
handleCommandResponse(RPL_WHOISSERVER, token4);
|
||||||
|
} else if (!strcmp(token2, "313"))
|
||||||
|
{
|
||||||
|
handleCommandResponse(RPL_WHOISOPERATOR, token4);
|
||||||
|
} else if (!strcmp(token2, "317"))
|
||||||
|
{
|
||||||
|
handleCommandResponse(RPL_WHOISIDLE, token4);
|
||||||
|
} else if (!strcmp(token2, "318"))
|
||||||
|
{
|
||||||
|
handleCommandResponse(RPL_ENDOFWHOIS, token4);
|
||||||
|
} else if (!strcmp(token2, "319"))
|
||||||
|
{
|
||||||
|
handleCommandResponse(RPL_WHOISCHANNELS, token4);
|
||||||
|
} else if (!strcmp(token2, "353"))
|
||||||
|
{
|
||||||
|
handleCommandResponse(RPL_NAMREPLY, token4);
|
||||||
|
} else if (!strcmp(token2, "372"))
|
||||||
|
{
|
||||||
|
handleCommandResponse(RPL_MOTD, token4);
|
||||||
|
} else if (!strcmp(token2, "375"))
|
||||||
|
{
|
||||||
|
handleCommandResponse(RPL_MOTDSTART, token4);
|
||||||
|
} else if (!strcmp(token2, "376"))
|
||||||
|
{
|
||||||
|
handleCommandResponse(RPL_ENDOFMOTD, token4);
|
||||||
|
} else if (!strcmp(token2, "401"))
|
||||||
|
{
|
||||||
|
handleCommandResponse(ERR_NOSUCHNICK, token4);
|
||||||
|
} else if (!strcmp(token2, "403"))
|
||||||
|
{
|
||||||
|
handleCommandResponse(ERR_NOSUCHCHANNEL, token4);
|
||||||
|
} else if (!strcmp(token2, "404"))
|
||||||
|
{
|
||||||
|
handleCommandResponse(ERR_CANNOTSENDTOCHAN, token4);
|
||||||
|
} else if (!strcmp(token2, "433"))
|
||||||
|
{
|
||||||
|
handleCommandResponse(ERR_NICKNAMEINUSE, token4);
|
||||||
|
} else if (!strcmp(token2, "436"))
|
||||||
|
{
|
||||||
|
handleCommandResponse(ERR_NICKCOLLISION, token4);
|
||||||
|
} else
|
||||||
|
printf("got some : command message: %s\n", token2);
|
||||||
|
} /* token 3 */
|
||||||
|
} /* token 2*/
|
||||||
|
} /* token 1 */
|
||||||
|
/* commands not starting with : */
|
||||||
|
} else if (!strncmp(inBuff, "NOTICE", 6))
|
||||||
|
{
|
||||||
|
char token[MAX_COMMAND_LEN+1];
|
||||||
|
int i;
|
||||||
|
int len;
|
||||||
|
int delta;
|
||||||
|
|
||||||
|
delta = strlen("NOTICE") + 1;
|
||||||
|
i = 7;
|
||||||
|
len = strlen(inBuff);
|
||||||
|
#ifdef DEBUG
|
||||||
|
assert(len <= MAX_COMMAND_LEN);
|
||||||
|
#endif
|
||||||
|
while (i < len)
|
||||||
|
{
|
||||||
|
token[i-delta] = inBuff[i];
|
||||||
|
i++;
|
||||||
|
}
|
||||||
|
token[i-delta] = '\0';
|
||||||
|
#ifdef DEBUG
|
||||||
|
printf("Should handle notice with: %s\n", token);
|
||||||
|
#endif
|
||||||
|
handleNotice(0, token);
|
||||||
|
} else if (!strncmp(inBuff, "PING", strlen("PING")))
|
||||||
|
{
|
||||||
|
char token[MAX_COMMAND_LEN+1];
|
||||||
|
int i;
|
||||||
|
int len;
|
||||||
|
int delta;
|
||||||
|
|
||||||
|
delta = strlen("PING") + 1;
|
||||||
|
len = strlen(inBuff);
|
||||||
|
if (inBuff[delta] == ':')
|
||||||
|
delta++;
|
||||||
|
i = delta;
|
||||||
|
while (i < len)
|
||||||
|
{
|
||||||
|
token[i-delta] = inBuff[i];
|
||||||
|
i++;
|
||||||
|
}
|
||||||
|
token[i-delta] = '\0';
|
||||||
|
handlePing(token);
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
printf("I got unknown: |%s|\n", inBuff);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void handlePing (char *sender)
|
||||||
|
{
|
||||||
|
#ifdef DEBUG
|
||||||
|
char msg[MAX_COMMAND_LEN+1];
|
||||||
|
|
||||||
|
|
||||||
|
strcpy(msg, "Got ping from: ");
|
||||||
|
strcat(msg, sender);
|
||||||
|
strcat(msg, "\n");
|
||||||
|
appendText(msg);
|
||||||
|
#endif
|
||||||
|
doPong(sender);
|
||||||
|
}
|
||||||
|
|
||||||
|
void handlePrivateMessage (char *sender, char *msg)
|
||||||
|
{
|
||||||
|
char tempStr[2*MAX_COMMAND_LEN+2];
|
||||||
|
char nick[MAX_COMMAND_LEN+1];
|
||||||
|
int i;
|
||||||
|
int senderLen;
|
||||||
|
|
||||||
|
senderLen = strlen(sender);
|
||||||
|
i = 0;
|
||||||
|
while (i < senderLen && sender[i] != '!')
|
||||||
|
i++;
|
||||||
|
if (sender[i] == '!')
|
||||||
|
strncpy(nick, sender, i);
|
||||||
|
nick[i] = '\0';
|
||||||
|
sprintf(tempStr, "[%s] %s\n", nick, msg);
|
||||||
|
appendText(tempStr);
|
||||||
|
}
|
||||||
|
|
||||||
|
void handleChannelMessage (char *sender, char *msg)
|
||||||
|
{
|
||||||
|
char tempStr[2*MAX_COMMAND_LEN+2];
|
||||||
|
char senderNick[MAX_COMMAND_LEN+1];
|
||||||
|
int i;
|
||||||
|
int nickLen;
|
||||||
|
|
||||||
|
i = 0;
|
||||||
|
nickLen = strlen(sender);
|
||||||
|
while (i < nickLen && sender[i] != '!')
|
||||||
|
{
|
||||||
|
senderNick[i] = sender[i];
|
||||||
|
i++;
|
||||||
|
}
|
||||||
|
|
||||||
|
senderNick[i] = '\0';
|
||||||
|
sprintf(tempStr, "%s: %s\n", senderNick, msg);
|
||||||
|
appendText(tempStr);
|
||||||
|
}
|
||||||
|
|
||||||
|
void handleNotice (char *sender, char *msg)
|
||||||
|
{
|
||||||
|
char tempStr[2*MAX_COMMAND_LEN+2];
|
||||||
|
char nick[MAX_COMMAND_LEN+1];
|
||||||
|
int i;
|
||||||
|
int senderLen;
|
||||||
|
|
||||||
|
if (sender)
|
||||||
|
{
|
||||||
|
senderLen = strlen(sender);
|
||||||
|
i = 0;
|
||||||
|
while (i < senderLen && sender[i] != '!')
|
||||||
|
i++;
|
||||||
|
if (sender[i] == '!')
|
||||||
|
strncpy(nick, sender, i);
|
||||||
|
nick[i] = '\0';
|
||||||
|
sprintf(tempStr, "# notice (%s) # : %s\n", nick, msg);
|
||||||
|
} else /* sender is NULL */
|
||||||
|
{
|
||||||
|
sprintf(tempStr, "# notice # : %s\n", msg);
|
||||||
|
}
|
||||||
|
appendText(tempStr);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void handleAction (char *sender, char *msg)
|
||||||
|
{
|
||||||
|
char tempStr[2*MAX_COMMAND_LEN+2];
|
||||||
|
char senderNick[MAX_COMMAND_LEN+1];
|
||||||
|
int i;
|
||||||
|
int nickLen;
|
||||||
|
|
||||||
|
i = 0;
|
||||||
|
nickLen = strlen(sender);
|
||||||
|
while (i < nickLen && sender[i] != '!')
|
||||||
|
{
|
||||||
|
senderNick[i] = sender[i];
|
||||||
|
i++;
|
||||||
|
}
|
||||||
|
senderNick[i] = '\0';
|
||||||
|
sprintf(tempStr, "--- %s %s\n", senderNick, msg);
|
||||||
|
appendText(tempStr);
|
||||||
|
}
|
||||||
|
|
||||||
|
void handleCommandResponse(int code, char *msg)
|
||||||
|
{
|
||||||
|
char tempStr[MAX_COMMAND_LEN+1];
|
||||||
|
switch (code)
|
||||||
|
{
|
||||||
|
case RPL_WELCOME:
|
||||||
|
if (!strncmp(msg, "Welcome to the Internet Relay Network", 37))
|
||||||
|
{
|
||||||
|
char *realNick;
|
||||||
|
char realNick2[MAX_NICK_LEN];
|
||||||
|
int nickLen;
|
||||||
|
int i;
|
||||||
|
|
||||||
|
realNick = msg + 38;
|
||||||
|
nickLen = strlen(realNick);;
|
||||||
|
i = 0;
|
||||||
|
while (i < nickLen && realNick[i] != '!')
|
||||||
|
{
|
||||||
|
realNick2[i] = realNick[i];
|
||||||
|
i++;
|
||||||
|
}
|
||||||
|
realNick2[i] = '\0';
|
||||||
|
if (strlen(realNick2) && strstr(sysState.myNick, realNick2))
|
||||||
|
{
|
||||||
|
printf("your real nick is: %s\n", realNick2);
|
||||||
|
strcpy(sysState.myNick, realNick2);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
sprintf(tempStr, "> %s\n", msg);
|
||||||
|
appendText(tempStr);
|
||||||
|
break;
|
||||||
|
case RPL_WHOISUSER:
|
||||||
|
case RPL_WHOISSERVER:
|
||||||
|
case RPL_WHOISOPERATOR:
|
||||||
|
case RPL_WHOISIDLE:
|
||||||
|
case RPL_ENDOFWHOIS:
|
||||||
|
case RPL_WHOISCHANNELS:
|
||||||
|
sprintf(tempStr, "> %s\n", msg);
|
||||||
|
appendText(tempStr);
|
||||||
|
break;
|
||||||
|
case RPL_NAMREPLY:
|
||||||
|
handleNamesReply(msg);
|
||||||
|
break;
|
||||||
|
case RPL_MOTDSTART:
|
||||||
|
case RPL_MOTD:
|
||||||
|
case RPL_ENDOFMOTD:
|
||||||
|
sprintf(tempStr, "> %s\n", msg);
|
||||||
|
appendText(tempStr);
|
||||||
|
break;
|
||||||
|
case ERR_NOSUCHNICK:
|
||||||
|
sprintf(tempStr, "> %s\n", msg);
|
||||||
|
appendText(tempStr);
|
||||||
|
break;
|
||||||
|
case ERR_NOSUCHCHANNEL:
|
||||||
|
sprintf(tempStr, "> %s\n", msg);
|
||||||
|
appendText(tempStr);
|
||||||
|
break;
|
||||||
|
case ERR_CANNOTSENDTOCHAN:
|
||||||
|
sprintf(tempStr, "> %s\n", msg);
|
||||||
|
appendText(tempStr);
|
||||||
|
break;
|
||||||
|
case ERR_NICKNAMEINUSE:
|
||||||
|
sprintf(tempStr, "> %s\n", msg);
|
||||||
|
appendText(tempStr);
|
||||||
|
break;
|
||||||
|
case ERR_NICKCOLLISION:
|
||||||
|
sprintf(tempStr, "> %s\n", msg);
|
||||||
|
appendText(tempStr);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
printf("Unknown command response: %d\n", code);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void handleJoinNotify(char *sender, char *channel)
|
||||||
|
{
|
||||||
|
char tempStr[2*MAX_COMMAND_LEN+2];
|
||||||
|
char senderNick[MAX_COMMAND_LEN+1];
|
||||||
|
int i;
|
||||||
|
int nickLen;
|
||||||
|
|
||||||
|
i = 0;
|
||||||
|
nickLen = strlen(sender);
|
||||||
|
while (i < nickLen && sender[i] != '!')
|
||||||
|
{
|
||||||
|
senderNick[i] = sender[i];
|
||||||
|
i++;
|
||||||
|
}
|
||||||
|
senderNick[i] = '\0';
|
||||||
|
sprintf(tempStr, "> %s joined %s\n", senderNick, channel);
|
||||||
|
appendText(tempStr);
|
||||||
|
if (senderNick[0] == '@' || senderNick[0] == '+')
|
||||||
|
addUserToList(senderNick+1, userList);
|
||||||
|
else
|
||||||
|
addUserToList(senderNick, userList);
|
||||||
|
}
|
||||||
|
|
||||||
|
void handleQuitNotify(char *sender, char *desc)
|
||||||
|
{
|
||||||
|
char tempStr[2*MAX_COMMAND_LEN+2];
|
||||||
|
char senderNick[MAX_COMMAND_LEN+1];
|
||||||
|
int i;
|
||||||
|
int nickLen;
|
||||||
|
|
||||||
|
i = 0;
|
||||||
|
nickLen = strlen(sender);
|
||||||
|
while (i < nickLen && sender[i] != '!')
|
||||||
|
{
|
||||||
|
senderNick[i] = sender[i];
|
||||||
|
i++;
|
||||||
|
}
|
||||||
|
senderNick[i] = '\0';
|
||||||
|
sprintf(tempStr, "> %s quit (%s)\n", senderNick, desc);
|
||||||
|
appendText(tempStr);
|
||||||
|
removeUserFromList(senderNick, userList);
|
||||||
|
}
|
||||||
|
|
||||||
|
void handlePartNotify(char *sender, char *desc)
|
||||||
|
{
|
||||||
|
char tempStr[2*MAX_COMMAND_LEN+2];
|
||||||
|
char senderNick[MAX_COMMAND_LEN+1];
|
||||||
|
int i;
|
||||||
|
int nickLen;
|
||||||
|
|
||||||
|
i = 0;
|
||||||
|
nickLen = strlen(sender);
|
||||||
|
while (i < nickLen && sender[i] != '!')
|
||||||
|
{
|
||||||
|
senderNick[i] = sender[i];
|
||||||
|
i++;
|
||||||
|
}
|
||||||
|
senderNick[i] = '\0';
|
||||||
|
sprintf(tempStr, "> %s parted (%s)\n", senderNick, desc);
|
||||||
|
appendText(tempStr);
|
||||||
|
removeUserFromList(senderNick, userList);
|
||||||
|
}
|
||||||
|
|
||||||
|
void handleNamesReply(char *message)
|
||||||
|
{
|
||||||
|
char nick[MAX_NICK_LEN+1];
|
||||||
|
char *beginNick, *endNick, *cursor;
|
||||||
|
int strLen;
|
||||||
|
|
||||||
|
strLen = strlen(message);
|
||||||
|
cursor = strchr(message, ':');
|
||||||
|
if (cursor == NULL)
|
||||||
|
return;
|
||||||
|
cursor++;
|
||||||
|
while (cursor-message < strLen)
|
||||||
|
{
|
||||||
|
beginNick = cursor;
|
||||||
|
endNick = strchr(cursor, ' ');
|
||||||
|
if (endNick == NULL)
|
||||||
|
endNick = message + strLen;
|
||||||
|
if (endNick - beginNick <= MAX_NICK_LEN)
|
||||||
|
{
|
||||||
|
strncpy(nick, beginNick, endNick - beginNick);
|
||||||
|
nick[endNick - beginNick] = '\0';
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
strncpy(nick, beginNick, MAX_NICK_LEN);
|
||||||
|
nick[MAX_NICK_LEN] = '\0';
|
||||||
|
printf("Warning, %s was longer than %d characters.\n", nick, MAX_NICK_LEN);
|
||||||
|
}
|
||||||
|
#ifdef DEBUG
|
||||||
|
printf("Found user |%s|\n", nick);
|
||||||
|
#endif
|
||||||
|
if (nick[0] == '@' || nick[0] == '+')
|
||||||
|
addUserToList(nick+1, userList);
|
||||||
|
else
|
||||||
|
addUserToList(nick, userList);
|
||||||
|
cursor = endNick + 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void handleMode (char *sender, char *dest, char *msg)
|
||||||
|
{
|
||||||
|
char tempStr[3*MAX_COMMAND_LEN+2];
|
||||||
|
char nick[MAX_COMMAND_LEN+1];
|
||||||
|
char token1[MAX_COMMAND_LEN+1];
|
||||||
|
char token2[MAX_COMMAND_LEN+1];
|
||||||
|
int msgLen;
|
||||||
|
int buffCursor;
|
||||||
|
int i;
|
||||||
|
int nickLen;
|
||||||
|
|
||||||
|
nick[0] = '\0';
|
||||||
|
token1[0] = '\0';
|
||||||
|
token2[0] = '\0';
|
||||||
|
|
||||||
|
/* extract nick part from sender */
|
||||||
|
i = 0;
|
||||||
|
nickLen = strlen(sender);
|
||||||
|
while (i < nickLen && sender[i] != '!')
|
||||||
|
{
|
||||||
|
nick[i] = sender[i];
|
||||||
|
i++;
|
||||||
|
}
|
||||||
|
nick[i] = '\0';
|
||||||
|
|
||||||
|
buffCursor = 0;
|
||||||
|
msgLen = strlen(msg);
|
||||||
|
i = 0;
|
||||||
|
while (buffCursor < msgLen && msg[buffCursor] != ' ')
|
||||||
|
token1[i++] = msg[buffCursor++];
|
||||||
|
|
||||||
|
token1[i] = '\0';
|
||||||
|
if (strlen(token1) > 0)
|
||||||
|
{
|
||||||
|
int j;
|
||||||
|
|
||||||
|
j = 0;
|
||||||
|
buffCursor++;
|
||||||
|
while (buffCursor < msgLen)
|
||||||
|
token2[j++] = msg[buffCursor++];
|
||||||
|
token2[j] = '\0';
|
||||||
|
}
|
||||||
|
#ifdef DEBUG
|
||||||
|
printf("%s made %s to %s\n", nick, msg, dest);
|
||||||
|
#endif
|
||||||
|
if (!strcmp(token1, "+o"))
|
||||||
|
{
|
||||||
|
sprintf(tempStr, "- %s: %s gives Op to %s\n", dest, nick, token2);
|
||||||
|
appendText(tempStr);
|
||||||
|
} else if (!strcmp(token1, "-o"))
|
||||||
|
{
|
||||||
|
sprintf(tempStr, "- %s: %s removes Op from %s\n", dest, nick, token2);
|
||||||
|
appendText(tempStr);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void handleCTCPVersion (char *sender)
|
||||||
|
{
|
||||||
|
char tempStr[2*MAX_COMMAND_LEN+2];
|
||||||
|
char nick[MAX_COMMAND_LEN+1];
|
||||||
|
char localEcho[MAX_COMMAND_LEN+100];
|
||||||
|
int i;
|
||||||
|
int senderLen;
|
||||||
|
|
||||||
|
senderLen = strlen(sender);
|
||||||
|
i = 0;
|
||||||
|
while (i < senderLen && sender[i] != '!')
|
||||||
|
i++;
|
||||||
|
if (sender[i] == '!' || i == senderLen)
|
||||||
|
strncpy(nick, sender, i);
|
||||||
|
nick[i] = '\0';
|
||||||
|
sprintf(tempStr, ":%s NOTICE %s :\001VERSION %s:%s:%s\001\n", sysState.myNick, nick, CLIENT_NAME, CLIENT_VERSION, sysState.systemInfo);
|
||||||
|
sendLine(tempStr);
|
||||||
|
sprintf(localEcho, "[ sent Version to %s ]\n", nick);
|
||||||
|
appendText(localEcho);
|
||||||
|
}
|
58
interpreter.h
Normal file
58
interpreter.h
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
/* --------------------------------------------------------------------- *
|
||||||
|
* interpreter.h *
|
||||||
|
* --------------------------------------------------------------------- *
|
||||||
|
* This file is part of the nebula irc client *
|
||||||
|
* http://nebula-irc.sourceforge.net *
|
||||||
|
|
||||||
|
* Copyright (c) 2004-2005 Riccardo Mottola. All rights reserved. *
|
||||||
|
* mail: rmottola@users.sourceforge.net *
|
||||||
|
|
||||||
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
|
/*
|
||||||
|
Copyright (c) 2004-2005, Riccardo Mottola
|
||||||
|
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||||
|
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||||
|
Neither the name of "Riccardo Mottola" nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||||
|
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
||||||
|
OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define RPL_WELCOME 001
|
||||||
|
#define RPL_WHOISUSER 311
|
||||||
|
#define RPL_WHOISSERVER 312
|
||||||
|
#define RPL_WHOISOPERATOR 313
|
||||||
|
#define RPL_WHOISIDLE 317
|
||||||
|
#define RPL_ENDOFWHOIS 318
|
||||||
|
#define RPL_WHOISCHANNELS 319
|
||||||
|
#define RPL_NAMREPLY 353
|
||||||
|
#define RPL_MOTD 372
|
||||||
|
#define RPL_MOTDSTART 375
|
||||||
|
#define RPL_ENDOFMOTD 376
|
||||||
|
#define ERR_NOSUCHNICK 401
|
||||||
|
#define ERR_NOSUCHCHANNEL 403
|
||||||
|
#define ERR_CANNOTSENDTOCHAN 404
|
||||||
|
#define ERR_NICKNAMEINUSE 433
|
||||||
|
#define ERR_NICKCOLLISION 436
|
||||||
|
|
||||||
|
void interpretCommand(char *cmd);
|
||||||
|
void interpretMessage(char *inBuff);
|
||||||
|
void handlePing (char *sender);
|
||||||
|
void handlePrivateMessage (char *sender, char *msg);
|
||||||
|
void handleNotice (char *sender, char *msg);
|
||||||
|
void handleChannelMessage (char *sender, char *msg);
|
||||||
|
void handleAction (char *sender, char *msg);
|
||||||
|
void handleCommandResponse(int code, char *msg);
|
||||||
|
void handleJoinNotify(char *sender, char *channel);
|
||||||
|
void handleQuitNotify(char *sender, char *desc);
|
||||||
|
void handlePartNotify(char *sender, char *desc);
|
||||||
|
void handleNamesReply(char *message);
|
||||||
|
void handleMode (char *sender, char *dest, char *msg);
|
||||||
|
void handleCTCPVersion (char *sender);
|
437
main.c
Normal file
437
main.c
Normal file
@ -0,0 +1,437 @@
|
|||||||
|
/* --------------------------------------------------------------------- *
|
||||||
|
* main.c *
|
||||||
|
* --------------------------------------------------------------------- *
|
||||||
|
* This file is part of the nebula irc client *
|
||||||
|
* http://nebula-irc.sourceforge.net *
|
||||||
|
|
||||||
|
* Copyright (c) 2004-2005 Riccardo Mottola. All rights reserved. *
|
||||||
|
* mail: rmottola@users.sourceforge.net *
|
||||||
|
|
||||||
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
|
/*
|
||||||
|
Copyright (c) 2004-2005, Riccardo Mottola
|
||||||
|
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
Redistributions of source code must retain the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer.
|
||||||
|
Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer in the documentation
|
||||||
|
and/or other materials provided with the distribution.
|
||||||
|
Neither the name of "Riccardo Mottola" nor the names of its contributors
|
||||||
|
may be used to endorse or promote products derived from this software
|
||||||
|
without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||||
|
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||||
|
ARE DISCLAIMED.
|
||||||
|
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY
|
||||||
|
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||||
|
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||||
|
LOSS OF USE, DATA, OR PROFITS;´OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||||
|
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||||
|
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <sys/utsname.h>
|
||||||
|
#include <errno.h>
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
#include <Xm/Xm.h>
|
||||||
|
#include <Xm/MainW.h>
|
||||||
|
#include <Xm/Form.h>
|
||||||
|
#include <Xm/Text.h>
|
||||||
|
#include <Xm/TextF.h>
|
||||||
|
#include <Xm/CascadeB.h>
|
||||||
|
#include <Xm/PanedW.h>
|
||||||
|
#include <Xm/List.h>
|
||||||
|
|
||||||
|
#include "interpreter.h"
|
||||||
|
#include "help.h"
|
||||||
|
#include "preferences.h"
|
||||||
|
#include "network.h"
|
||||||
|
#include "filesave.h"
|
||||||
|
|
||||||
|
#ifndef XmFONTLIST_DEFAULT_TAG
|
||||||
|
#define XmFONTLIST_DEFAULT_TAG ""
|
||||||
|
#endif
|
||||||
|
|
||||||
|
void fileMenuCall(Widget w, XtPointer clientData, XtPointer callData);
|
||||||
|
void userMenuCall(Widget w, XtPointer clientData, XtPointer callData);
|
||||||
|
void helpMenuCall(Widget w, XtPointer clientData, XtPointer callData);
|
||||||
|
void userListSelectCbk(Widget w, XtPointer data, XtPointer callData);
|
||||||
|
void commandInputCall();
|
||||||
|
|
||||||
|
Widget mainWindow;
|
||||||
|
|
||||||
|
Widget commandInput;
|
||||||
|
Widget outputArea;
|
||||||
|
Widget userList;
|
||||||
|
|
||||||
|
Widget aboutDlgBox;
|
||||||
|
Widget commandsHelpDlgBox;
|
||||||
|
|
||||||
|
XtAppContext nebulaIrcAppContext;
|
||||||
|
XtInputId nebulaNetworkEventId;
|
||||||
|
|
||||||
|
char *selectedUser;
|
||||||
|
|
||||||
|
|
||||||
|
/* holds global information about the system */
|
||||||
|
systemStatusRecord sysState;
|
||||||
|
|
||||||
|
int main (int argc, char *argv[])
|
||||||
|
{
|
||||||
|
Widget topWidget;
|
||||||
|
Widget mainForm;
|
||||||
|
Widget userForm;
|
||||||
|
|
||||||
|
/* Menu Stuff */
|
||||||
|
Widget menuBar, helpMenu;
|
||||||
|
|
||||||
|
static String fallback_resources[] = {
|
||||||
|
"*sgiMode: True",
|
||||||
|
"*useSchemes: all",
|
||||||
|
NULL };
|
||||||
|
|
||||||
|
topWidget = XtVaAppInitialize(&nebulaIrcAppContext, "Nebula IRC",
|
||||||
|
NULL, 0, /* no command line options */
|
||||||
|
&argc, argv,
|
||||||
|
fallback_resources, /* fallback resource list */
|
||||||
|
NULL);
|
||||||
|
|
||||||
|
mainWindow = XtVaCreateManagedWidget("main_window",
|
||||||
|
xmMainWindowWidgetClass, topWidget,
|
||||||
|
XmNcommandWindowLocation, XmCOMMAND_BELOW_WORKSPACE,
|
||||||
|
XmNwidth, 600,
|
||||||
|
XmNheight, 500,
|
||||||
|
NULL);
|
||||||
|
|
||||||
|
/* create menu bar */
|
||||||
|
{
|
||||||
|
XmString fileMenuStr, userMenuStr, helpMenuStr;
|
||||||
|
|
||||||
|
fileMenuStr = XM_STRING_CREATE("File");
|
||||||
|
userMenuStr = XM_STRING_CREATE("User");
|
||||||
|
helpMenuStr = XM_STRING_CREATE("Help");
|
||||||
|
|
||||||
|
menuBar = XmVaCreateSimpleMenuBar(mainWindow, "menubar",
|
||||||
|
XmVaCASCADEBUTTON, fileMenuStr, 'F',
|
||||||
|
XmVaCASCADEBUTTON, userMenuStr, 'U',
|
||||||
|
NULL);
|
||||||
|
|
||||||
|
XmStringFree(fileMenuStr);
|
||||||
|
XmStringFree(userMenuStr);
|
||||||
|
XmStringFree(helpMenuStr);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* File Menu */
|
||||||
|
{
|
||||||
|
XmString prefStr;
|
||||||
|
XmString saveConvStr;
|
||||||
|
XmString quitStr;
|
||||||
|
|
||||||
|
prefStr = XM_STRING_CREATE("Preferences...");
|
||||||
|
saveConvStr = XM_STRING_CREATE("Save Conversation...");
|
||||||
|
quitStr = XM_STRING_CREATE("Quit");
|
||||||
|
XmVaCreateSimplePulldownMenu(menuBar, "file_menu", 0,
|
||||||
|
fileMenuCall,
|
||||||
|
XmVaPUSHBUTTON, prefStr, 'P', NULL, NULL,
|
||||||
|
XmVaPUSHBUTTON, saveConvStr, 'S', NULL, NULL,
|
||||||
|
XmVaPUSHBUTTON, quitStr, 'Q', NULL, NULL,
|
||||||
|
NULL);
|
||||||
|
XmStringFree(prefStr);
|
||||||
|
XmStringFree(saveConvStr);
|
||||||
|
XmStringFree(quitStr);
|
||||||
|
}
|
||||||
|
/* User Menu */
|
||||||
|
{
|
||||||
|
XmString whoisStr;
|
||||||
|
XmString versionStr;
|
||||||
|
XmString opStr;
|
||||||
|
XmString deopStr;
|
||||||
|
|
||||||
|
whoisStr = XM_STRING_CREATE("Whois");
|
||||||
|
versionStr = XM_STRING_CREATE("Client version");
|
||||||
|
opStr = XM_STRING_CREATE("Op");
|
||||||
|
deopStr = XM_STRING_CREATE("Deop");
|
||||||
|
XmVaCreateSimplePulldownMenu(menuBar, "user_menu", 1,
|
||||||
|
userMenuCall,
|
||||||
|
XmVaPUSHBUTTON, whoisStr, 'W', NULL, NULL,
|
||||||
|
XmVaPUSHBUTTON, versionStr, '\0', NULL, NULL,
|
||||||
|
XmVaPUSHBUTTON, opStr, 'O', NULL, NULL,
|
||||||
|
XmVaPUSHBUTTON, deopStr, 'D', NULL, NULL,
|
||||||
|
NULL);
|
||||||
|
XmStringFree(whoisStr);
|
||||||
|
XmStringFree(versionStr);
|
||||||
|
XmStringFree(opStr);
|
||||||
|
XmStringFree(deopStr);
|
||||||
|
}
|
||||||
|
/* Help Menu */
|
||||||
|
{
|
||||||
|
XmString helpCommandStr;
|
||||||
|
XmString aboutStr;
|
||||||
|
|
||||||
|
helpCommandStr = XM_STRING_CREATE("Commands...");
|
||||||
|
aboutStr = XM_STRING_CREATE("About...");
|
||||||
|
helpMenu = XtVaCreateManagedWidget("Help",
|
||||||
|
xmCascadeButtonWidgetClass, menuBar,
|
||||||
|
XmNmnemonic, 'H',
|
||||||
|
NULL);
|
||||||
|
XmVaCreateSimplePulldownMenu(menuBar, "Help", 2,
|
||||||
|
helpMenuCall,
|
||||||
|
XmVaPUSHBUTTON, aboutStr, 'A', NULL, NULL,
|
||||||
|
XmVaPUSHBUTTON, helpCommandStr, 'C', NULL, NULL,
|
||||||
|
NULL);
|
||||||
|
XmStringFree(helpCommandStr);
|
||||||
|
XmStringFree(aboutStr);
|
||||||
|
|
||||||
|
/* now set the help button */
|
||||||
|
XtVaSetValues(menuBar, XmNmenuHelpWidget, helpMenu, NULL);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* now manage the menu bar */
|
||||||
|
XtManageChild(menuBar);
|
||||||
|
|
||||||
|
/* create a form */
|
||||||
|
mainForm = XtVaCreateWidget("form", xmFormWidgetClass, mainWindow, XmNfractionBase, 3, NULL);
|
||||||
|
|
||||||
|
/* vertical split user form */
|
||||||
|
userForm = XtVaCreateWidget("userform", xmFormWidgetClass, mainForm,
|
||||||
|
XmNfractionBase, 5,
|
||||||
|
XmNtopAttachment, XmATTACH_FORM,
|
||||||
|
XmNleftAttachment, XmATTACH_FORM,
|
||||||
|
XmNbottomAttachment, XmATTACH_FORM,
|
||||||
|
XmNrightAttachment, XmATTACH_FORM,
|
||||||
|
NULL);
|
||||||
|
|
||||||
|
/* output area */
|
||||||
|
{
|
||||||
|
Arg args[12];
|
||||||
|
|
||||||
|
XtSetArg(args[0], XmNeditable, False);
|
||||||
|
XtSetArg(args[1], XmNeditMode, XmMULTI_LINE_EDIT);
|
||||||
|
XtSetArg(args[2], XmNscrollHorizontal, False);
|
||||||
|
XtSetArg(args[3], XmNwordWrap, True);
|
||||||
|
XtSetArg(args[4], XmNtopAttachment, XmATTACH_POSITION);
|
||||||
|
XtSetArg(args[5], XmNtopPosition, 0);
|
||||||
|
XtSetArg(args[6], XmNbottomAttachment, XmATTACH_POSITION);
|
||||||
|
XtSetArg(args[7], XmNbottomPosition, 5);
|
||||||
|
XtSetArg(args[8], XmNleftAttachment, XmATTACH_POSITION);
|
||||||
|
XtSetArg(args[9], XmNleftPosition, 0);
|
||||||
|
XtSetArg(args[10], XmNrightAttachment, XmATTACH_POSITION);
|
||||||
|
XtSetArg(args[11], XmNrightPosition, 4);
|
||||||
|
outputArea = XmCreateScrolledText(userForm, "output", args, 12);
|
||||||
|
|
||||||
|
if (outputArea == NULL)
|
||||||
|
perror("outputArea: ");
|
||||||
|
XtManageChild(outputArea);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* user list at left */
|
||||||
|
{
|
||||||
|
Arg args[9];
|
||||||
|
|
||||||
|
XtSetArg(args[0], XmNtopAttachment, XmATTACH_POSITION);
|
||||||
|
XtSetArg(args[1], XmNtopPosition, 0);
|
||||||
|
XtSetArg(args[2], XmNbottomAttachment, XmATTACH_POSITION);
|
||||||
|
XtSetArg(args[3], XmNbottomPosition, 5);
|
||||||
|
XtSetArg(args[4], XmNleftAttachment, XmATTACH_POSITION);
|
||||||
|
XtSetArg(args[5], XmNleftPosition, 4);
|
||||||
|
XtSetArg(args[6], XmNrightAttachment, XmATTACH_POSITION);
|
||||||
|
XtSetArg(args[7], XmNrightPosition, 5);
|
||||||
|
XtSetArg(args[8], XmNselectionPolicy, XmSINGLE_SELECT);
|
||||||
|
userList = XmCreateScrolledList(userForm, "list", args, 9);
|
||||||
|
XtAddCallback(userList, XmNsingleSelectionCallback, userListSelectCbk, NULL);
|
||||||
|
XtManageChild(userList);
|
||||||
|
}
|
||||||
|
XtManageChild(userForm);
|
||||||
|
XtManageChild(mainForm);
|
||||||
|
|
||||||
|
/* Command line area */
|
||||||
|
commandInput = XtVaCreateWidget("command",
|
||||||
|
xmTextFieldWidgetClass, mainWindow,
|
||||||
|
XmNmaxLength, MAX_INPUT_LEN,
|
||||||
|
NULL);
|
||||||
|
XtAddCallback(commandInput, XmNactivateCallback, commandInputCall, NULL);
|
||||||
|
XtManageChild(commandInput);
|
||||||
|
|
||||||
|
XtVaSetValues(mainWindow,
|
||||||
|
XmNmenuBar, menuBar,
|
||||||
|
XmNworkWindow, mainForm,
|
||||||
|
XmNcommandWindow, commandInput,
|
||||||
|
NULL);
|
||||||
|
|
||||||
|
XtManageChild(mainWindow);
|
||||||
|
XtRealizeWidget(topWidget);
|
||||||
|
|
||||||
|
/* initialize System Status */
|
||||||
|
sysState.isConnected = NO;
|
||||||
|
|
||||||
|
/* get some preferences */
|
||||||
|
getStartupPrefs(mainWindow);
|
||||||
|
|
||||||
|
/* set focus to input area */
|
||||||
|
/* For Motif 1.0 we should use _XmGrabTheFocus(target) according to FAQ */
|
||||||
|
XmProcessTraversal(commandInput, XmTRAVERSE_CURRENT);
|
||||||
|
|
||||||
|
/* initialize hostname and system info */
|
||||||
|
/* should switch back to ARCHOS if uname not available */
|
||||||
|
{
|
||||||
|
struct utsname sysInfo;
|
||||||
|
char tempName[2*SYSINFO_LEN];
|
||||||
|
|
||||||
|
gethostname(sysState.myHostName, MAXHOSTNAMELEN);
|
||||||
|
uname(&sysInfo);
|
||||||
|
sprintf(tempName, "%s %s running on %s", sysInfo.sysname, sysInfo.release, sysInfo.machine);
|
||||||
|
tempName[SYSINFO_LEN] = '\0';
|
||||||
|
strcpy(sysState.systemInfo, tempName);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* get the user login name from unix */
|
||||||
|
{
|
||||||
|
char *tempName;
|
||||||
|
|
||||||
|
tempName = getenv("USER");
|
||||||
|
if (tempName == NULL)
|
||||||
|
tempName = getenv("LOGNAME");
|
||||||
|
if (strlen(tempName) > MAX_NAME_LEN || tempName == NULL)
|
||||||
|
{
|
||||||
|
strcpy(sysState.myUnixname, "joesmith");
|
||||||
|
printf("Failed to get a proper Unix login name. Using: %s\n", sysState.myUnixname);
|
||||||
|
}
|
||||||
|
strcpy(sysState.myUnixname, tempName);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* create unmanaged dialogs */
|
||||||
|
createAboutBox(mainWindow);
|
||||||
|
createCommandsHelpBox(mainWindow);
|
||||||
|
|
||||||
|
while(1)
|
||||||
|
{
|
||||||
|
XEvent theEvent;
|
||||||
|
XtAppNextEvent(nebulaIrcAppContext, &theEvent);
|
||||||
|
XtDispatchEvent(&theEvent);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* saves the text in the conversation window */
|
||||||
|
void fileMenuCall(Widget w, XtPointer clientData, XtPointer callData)
|
||||||
|
{
|
||||||
|
long int itemNum;
|
||||||
|
|
||||||
|
itemNum = (long int) clientData;
|
||||||
|
switch (itemNum)
|
||||||
|
{
|
||||||
|
case 0:
|
||||||
|
setPreferences(mainWindow);
|
||||||
|
break;
|
||||||
|
case 1:
|
||||||
|
saveFile(mainWindow);
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
quitApplication();
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void helpMenuCall(Widget w, XtPointer clientData, XtPointer callData)
|
||||||
|
{
|
||||||
|
long int itemNum;
|
||||||
|
fprintf(stderr, "Size of clientData: %lu\nSize of itemNum: %lu\n", sizeof(clientData), sizeof(itemNum));
|
||||||
|
|
||||||
|
itemNum = (long int) clientData;
|
||||||
|
switch (itemNum)
|
||||||
|
{
|
||||||
|
case 0:
|
||||||
|
displayAboutBox();
|
||||||
|
break;
|
||||||
|
case 1:
|
||||||
|
displayCommandsHelpBox();
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void userMenuCall(Widget w, XtPointer clientData, XtPointer callData)
|
||||||
|
{
|
||||||
|
long int itemNum;
|
||||||
|
|
||||||
|
#ifdef DEBUG
|
||||||
|
printf("user: %s\n", selectedUser);
|
||||||
|
#endif
|
||||||
|
if (selectedUser == NULL)
|
||||||
|
return;
|
||||||
|
|
||||||
|
itemNum = (long int) clientData;
|
||||||
|
switch (itemNum)
|
||||||
|
{
|
||||||
|
case 0:
|
||||||
|
printf("Whois!\n");
|
||||||
|
doWhois(selectedUser);
|
||||||
|
break;
|
||||||
|
case 1:
|
||||||
|
printf("version!\n");
|
||||||
|
doCTCPVersion(selectedUser);
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
printf("op!\n");
|
||||||
|
doMode(sysState.currentChannel, "+o", selectedUser, NULL, NULL);
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
printf("deop!\n");
|
||||||
|
doMode(sysState.currentChannel, "-o", selectedUser, NULL, NULL);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void userListSelectCbk(Widget w, XtPointer data, XtPointer callData)
|
||||||
|
{
|
||||||
|
XmListCallbackStruct *listCbs;
|
||||||
|
|
||||||
|
listCbs = (XmListCallbackStruct *)callData;
|
||||||
|
XmStringGetLtoR(listCbs->item, XmFONTLIST_DEFAULT_TAG, &selectedUser);
|
||||||
|
}
|
||||||
|
|
||||||
|
void commandInputCall()
|
||||||
|
{
|
||||||
|
char *command;
|
||||||
|
|
||||||
|
command = XmTextGetString(commandInput);
|
||||||
|
interpretCommand(command);
|
||||||
|
XmTextSetString(commandInput,"");
|
||||||
|
XtFree(command);
|
||||||
|
}
|
||||||
|
|
||||||
|
void quitApplication()
|
||||||
|
{
|
||||||
|
disconnectFromServer();
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* appends text at the bottom of the main text widget */
|
||||||
|
void appendText(char *msg)
|
||||||
|
{
|
||||||
|
XmTextPosition lastPos;
|
||||||
|
|
||||||
|
lastPos = XmTextGetLastPosition(outputArea);
|
||||||
|
XmTextInsert(outputArea, lastPos, msg);
|
||||||
|
lastPos = XmTextGetLastPosition(outputArea);
|
||||||
|
XmTextSetInsertionPosition(outputArea, lastPos);
|
||||||
|
}
|
110
main.h
Normal file
110
main.h
Normal file
@ -0,0 +1,110 @@
|
|||||||
|
/* --------------------------------------------------------------------- *
|
||||||
|
* main.h *
|
||||||
|
* --------------------------------------------------------------------- *
|
||||||
|
* This file is part of the nebula irc client *
|
||||||
|
* http://nebula-irc.sourceforge.net *
|
||||||
|
|
||||||
|
* Copyright (c) 2004-2005 Riccardo Mottola. All rights reserved. *
|
||||||
|
* mail: rmottola@users.sourceforge.net *
|
||||||
|
|
||||||
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
|
/*
|
||||||
|
Copyright (c) 2004-2005, Riccardo Mottola
|
||||||
|
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
Redistributions of source code must retain the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer.
|
||||||
|
Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer in the documentation
|
||||||
|
and/or other materials provided with the distribution.
|
||||||
|
Neither the name of "Riccardo Mottola" nor the names of its contributors
|
||||||
|
may be used to endorse or promote products derived from this software
|
||||||
|
without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||||
|
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||||
|
ARE DISCLAIMED.
|
||||||
|
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY
|
||||||
|
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||||
|
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||||
|
LOSS OF USE, DATA, OR PROFITS;´OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||||
|
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||||
|
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "config.h"
|
||||||
|
#include <netdb.h> /* for MAXHOSTNAMELEN */
|
||||||
|
#include <sys/param.h> /* for MAXHOSTNAMELEN on other systems */
|
||||||
|
|
||||||
|
#define PREF_FILE_NAME ".nebula.rc"
|
||||||
|
|
||||||
|
#define CLIENT_NAME "Nebula IRC"
|
||||||
|
#define CLIENT_VERSION PACKAGE_VERSION
|
||||||
|
|
||||||
|
#define SYSINFO_LEN 128
|
||||||
|
#define MAX_COMMAND_LEN 1024
|
||||||
|
#define MAX_INPUT_LEN 480
|
||||||
|
#define MAX_CHUNK_LEN 512 /* RFC 1459 */
|
||||||
|
#define MAX_SERVERNAME_LEN 128
|
||||||
|
#define MAX_NICK_LEN 32
|
||||||
|
#define MAX_NAME_LEN 64
|
||||||
|
#define MAX_CHANNEL_LEN 64
|
||||||
|
#define OLD_MOTIF
|
||||||
|
|
||||||
|
#include <assert.h>
|
||||||
|
|
||||||
|
#define NO 0
|
||||||
|
#define YES 1
|
||||||
|
|
||||||
|
#ifndef MAXHOSTNAMELEN
|
||||||
|
#define MAXHOSTNAMELEN 64
|
||||||
|
#warning MAXHOSTNAMELEN not defined in system headers ?
|
||||||
|
#endif
|
||||||
|
|
||||||
|
typedef struct
|
||||||
|
{
|
||||||
|
char myHostName[MAXHOSTNAMELEN];
|
||||||
|
char systemInfo[SYSINFO_LEN];
|
||||||
|
char isConnected;
|
||||||
|
char isAuthenticated;
|
||||||
|
int socket;
|
||||||
|
char serverName[MAX_SERVERNAME_LEN];
|
||||||
|
int port;
|
||||||
|
char myNick[MAX_NICK_LEN];
|
||||||
|
char myName[MAX_NAME_LEN];
|
||||||
|
char myUnixname[MAX_NAME_LEN];
|
||||||
|
char isInChannel;
|
||||||
|
char currentChannel[MAX_CHANNEL_LEN];
|
||||||
|
char isInQuery;
|
||||||
|
char currentQuery[MAX_NICK_LEN];
|
||||||
|
} systemStatusRecord;
|
||||||
|
|
||||||
|
void addFdToSelectMask(int fd);
|
||||||
|
void rmvFdToSelectMask(int fd);
|
||||||
|
void quitApplication();
|
||||||
|
void appendText(char *msg);
|
||||||
|
|
||||||
|
#ifdef HAVE_XMSTRINGCREATELOCALIZED
|
||||||
|
#define XM_STRING_CREATE(str)\
|
||||||
|
XmStringCreateLocalized(str)
|
||||||
|
#else
|
||||||
|
#define XM_STRING_CREATE(str)\
|
||||||
|
XmStringCreateSimple(str)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* remember to check for XmFONTLIST_DEFAULT_TAG when used */
|
||||||
|
|
||||||
|
#ifdef HAVE_XMSTRINGGENERATE
|
||||||
|
#define XM_STRING_GEN_COMP(str)\
|
||||||
|
XmStringGenerate(str, XmFONTLIST_DEFAULT_TAG, XmCHARSET_TEXT, NULL);
|
||||||
|
#else
|
||||||
|
#define XM_STRING_GEN_COMP(str)\
|
||||||
|
XmStringCreateLtoR(str, XmFONTLIST_DEFAULT_TAG);
|
||||||
|
#endif
|
360
missing
Executable file
360
missing
Executable file
@ -0,0 +1,360 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
# Common stub for a few missing GNU programs while installing.
|
||||||
|
|
||||||
|
scriptversion=2003-09-02.23
|
||||||
|
|
||||||
|
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003
|
||||||
|
# Free Software Foundation, Inc.
|
||||||
|
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
|
||||||
|
|
||||||
|
# This program is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
# any later version.
|
||||||
|
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
||||||
|
# 02111-1307, USA.
|
||||||
|
|
||||||
|
# As a special exception to the GNU General Public License, if you
|
||||||
|
# distribute this file as part of a program that contains a
|
||||||
|
# configuration script generated by Autoconf, you may include it under
|
||||||
|
# the same distribution terms that you use for the rest of that program.
|
||||||
|
|
||||||
|
if test $# -eq 0; then
|
||||||
|
echo 1>&2 "Try \`$0 --help' for more information"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
run=:
|
||||||
|
|
||||||
|
# In the cases where this matters, `missing' is being run in the
|
||||||
|
# srcdir already.
|
||||||
|
if test -f configure.ac; then
|
||||||
|
configure_ac=configure.ac
|
||||||
|
else
|
||||||
|
configure_ac=configure.in
|
||||||
|
fi
|
||||||
|
|
||||||
|
msg="missing on your system"
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
--run)
|
||||||
|
# Try to run requested program, and just exit if it succeeds.
|
||||||
|
run=
|
||||||
|
shift
|
||||||
|
"$@" && exit 0
|
||||||
|
# Exit code 63 means version mismatch. This often happens
|
||||||
|
# when the user try to use an ancient version of a tool on
|
||||||
|
# a file that requires a minimum version. In this case we
|
||||||
|
# we should proceed has if the program had been absent, or
|
||||||
|
# if --run hadn't been passed.
|
||||||
|
if test $? = 63; then
|
||||||
|
run=:
|
||||||
|
msg="probably too old"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# If it does not exist, or fails to run (possibly an outdated version),
|
||||||
|
# try to emulate it.
|
||||||
|
case "$1" in
|
||||||
|
|
||||||
|
-h|--h|--he|--hel|--help)
|
||||||
|
echo "\
|
||||||
|
$0 [OPTION]... PROGRAM [ARGUMENT]...
|
||||||
|
|
||||||
|
Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
|
||||||
|
error status if there is no known handling for PROGRAM.
|
||||||
|
|
||||||
|
Options:
|
||||||
|
-h, --help display this help and exit
|
||||||
|
-v, --version output version information and exit
|
||||||
|
--run try to run the given command, and emulate it if it fails
|
||||||
|
|
||||||
|
Supported PROGRAM values:
|
||||||
|
aclocal touch file \`aclocal.m4'
|
||||||
|
autoconf touch file \`configure'
|
||||||
|
autoheader touch file \`config.h.in'
|
||||||
|
automake touch all \`Makefile.in' files
|
||||||
|
bison create \`y.tab.[ch]', if possible, from existing .[ch]
|
||||||
|
flex create \`lex.yy.c', if possible, from existing .c
|
||||||
|
help2man touch the output file
|
||||||
|
lex create \`lex.yy.c', if possible, from existing .c
|
||||||
|
makeinfo touch the output file
|
||||||
|
tar try tar, gnutar, gtar, then tar without non-portable flags
|
||||||
|
yacc create \`y.tab.[ch]', if possible, from existing .[ch]
|
||||||
|
|
||||||
|
Send bug reports to <bug-automake@gnu.org>."
|
||||||
|
;;
|
||||||
|
|
||||||
|
-v|--v|--ve|--ver|--vers|--versi|--versio|--version)
|
||||||
|
echo "missing $scriptversion (GNU Automake)"
|
||||||
|
;;
|
||||||
|
|
||||||
|
-*)
|
||||||
|
echo 1>&2 "$0: Unknown \`$1' option"
|
||||||
|
echo 1>&2 "Try \`$0 --help' for more information"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
|
||||||
|
aclocal*)
|
||||||
|
if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
|
||||||
|
# We have it, but it failed.
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo 1>&2 "\
|
||||||
|
WARNING: \`$1' is $msg. You should only need it if
|
||||||
|
you modified \`acinclude.m4' or \`${configure_ac}'. You might want
|
||||||
|
to install the \`Automake' and \`Perl' packages. Grab them from
|
||||||
|
any GNU archive site."
|
||||||
|
touch aclocal.m4
|
||||||
|
;;
|
||||||
|
|
||||||
|
autoconf)
|
||||||
|
if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
|
||||||
|
# We have it, but it failed.
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo 1>&2 "\
|
||||||
|
WARNING: \`$1' is $msg. You should only need it if
|
||||||
|
you modified \`${configure_ac}'. You might want to install the
|
||||||
|
\`Autoconf' and \`GNU m4' packages. Grab them from any GNU
|
||||||
|
archive site."
|
||||||
|
touch configure
|
||||||
|
;;
|
||||||
|
|
||||||
|
autoheader)
|
||||||
|
if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
|
||||||
|
# We have it, but it failed.
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo 1>&2 "\
|
||||||
|
WARNING: \`$1' is $msg. You should only need it if
|
||||||
|
you modified \`acconfig.h' or \`${configure_ac}'. You might want
|
||||||
|
to install the \`Autoconf' and \`GNU m4' packages. Grab them
|
||||||
|
from any GNU archive site."
|
||||||
|
files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
|
||||||
|
test -z "$files" && files="config.h"
|
||||||
|
touch_files=
|
||||||
|
for f in $files; do
|
||||||
|
case "$f" in
|
||||||
|
*:*) touch_files="$touch_files "`echo "$f" |
|
||||||
|
sed -e 's/^[^:]*://' -e 's/:.*//'`;;
|
||||||
|
*) touch_files="$touch_files $f.in";;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
touch $touch_files
|
||||||
|
;;
|
||||||
|
|
||||||
|
automake*)
|
||||||
|
if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
|
||||||
|
# We have it, but it failed.
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo 1>&2 "\
|
||||||
|
WARNING: \`$1' is $msg. You should only need it if
|
||||||
|
you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
|
||||||
|
You might want to install the \`Automake' and \`Perl' packages.
|
||||||
|
Grab them from any GNU archive site."
|
||||||
|
find . -type f -name Makefile.am -print |
|
||||||
|
sed 's/\.am$/.in/' |
|
||||||
|
while read f; do touch "$f"; done
|
||||||
|
;;
|
||||||
|
|
||||||
|
autom4te)
|
||||||
|
if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
|
||||||
|
# We have it, but it failed.
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo 1>&2 "\
|
||||||
|
WARNING: \`$1' is needed, but is $msg.
|
||||||
|
You might have modified some files without having the
|
||||||
|
proper tools for further handling them.
|
||||||
|
You can get \`$1' as part of \`Autoconf' from any GNU
|
||||||
|
archive site."
|
||||||
|
|
||||||
|
file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
|
||||||
|
test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
|
||||||
|
if test -f "$file"; then
|
||||||
|
touch $file
|
||||||
|
else
|
||||||
|
test -z "$file" || exec >$file
|
||||||
|
echo "#! /bin/sh"
|
||||||
|
echo "# Created by GNU Automake missing as a replacement of"
|
||||||
|
echo "# $ $@"
|
||||||
|
echo "exit 0"
|
||||||
|
chmod +x $file
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
|
bison|yacc)
|
||||||
|
echo 1>&2 "\
|
||||||
|
WARNING: \`$1' $msg. You should only need it if
|
||||||
|
you modified a \`.y' file. You may need the \`Bison' package
|
||||||
|
in order for those modifications to take effect. You can get
|
||||||
|
\`Bison' from any GNU archive site."
|
||||||
|
rm -f y.tab.c y.tab.h
|
||||||
|
if [ $# -ne 1 ]; then
|
||||||
|
eval LASTARG="\${$#}"
|
||||||
|
case "$LASTARG" in
|
||||||
|
*.y)
|
||||||
|
SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
|
||||||
|
if [ -f "$SRCFILE" ]; then
|
||||||
|
cp "$SRCFILE" y.tab.c
|
||||||
|
fi
|
||||||
|
SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
|
||||||
|
if [ -f "$SRCFILE" ]; then
|
||||||
|
cp "$SRCFILE" y.tab.h
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
if [ ! -f y.tab.h ]; then
|
||||||
|
echo >y.tab.h
|
||||||
|
fi
|
||||||
|
if [ ! -f y.tab.c ]; then
|
||||||
|
echo 'main() { return 0; }' >y.tab.c
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
|
lex|flex)
|
||||||
|
echo 1>&2 "\
|
||||||
|
WARNING: \`$1' is $msg. You should only need it if
|
||||||
|
you modified a \`.l' file. You may need the \`Flex' package
|
||||||
|
in order for those modifications to take effect. You can get
|
||||||
|
\`Flex' from any GNU archive site."
|
||||||
|
rm -f lex.yy.c
|
||||||
|
if [ $# -ne 1 ]; then
|
||||||
|
eval LASTARG="\${$#}"
|
||||||
|
case "$LASTARG" in
|
||||||
|
*.l)
|
||||||
|
SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
|
||||||
|
if [ -f "$SRCFILE" ]; then
|
||||||
|
cp "$SRCFILE" lex.yy.c
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
if [ ! -f lex.yy.c ]; then
|
||||||
|
echo 'main() { return 0; }' >lex.yy.c
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
|
help2man)
|
||||||
|
if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
|
||||||
|
# We have it, but it failed.
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo 1>&2 "\
|
||||||
|
WARNING: \`$1' is $msg. You should only need it if
|
||||||
|
you modified a dependency of a manual page. You may need the
|
||||||
|
\`Help2man' package in order for those modifications to take
|
||||||
|
effect. You can get \`Help2man' from any GNU archive site."
|
||||||
|
|
||||||
|
file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
|
||||||
|
if test -z "$file"; then
|
||||||
|
file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
|
||||||
|
fi
|
||||||
|
if [ -f "$file" ]; then
|
||||||
|
touch $file
|
||||||
|
else
|
||||||
|
test -z "$file" || exec >$file
|
||||||
|
echo ".ab help2man is required to generate this page"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
|
makeinfo)
|
||||||
|
if test -z "$run" && (makeinfo --version) > /dev/null 2>&1; then
|
||||||
|
# We have makeinfo, but it failed.
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo 1>&2 "\
|
||||||
|
WARNING: \`$1' is $msg. You should only need it if
|
||||||
|
you modified a \`.texi' or \`.texinfo' file, or any other file
|
||||||
|
indirectly affecting the aspect of the manual. The spurious
|
||||||
|
call might also be the consequence of using a buggy \`make' (AIX,
|
||||||
|
DU, IRIX). You might want to install the \`Texinfo' package or
|
||||||
|
the \`GNU make' package. Grab either from any GNU archive site."
|
||||||
|
file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
|
||||||
|
if test -z "$file"; then
|
||||||
|
file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
|
||||||
|
file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file`
|
||||||
|
fi
|
||||||
|
touch $file
|
||||||
|
;;
|
||||||
|
|
||||||
|
tar)
|
||||||
|
shift
|
||||||
|
if test -n "$run"; then
|
||||||
|
echo 1>&2 "ERROR: \`tar' requires --run"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# We have already tried tar in the generic part.
|
||||||
|
# Look for gnutar/gtar before invocation to avoid ugly error
|
||||||
|
# messages.
|
||||||
|
if (gnutar --version > /dev/null 2>&1); then
|
||||||
|
gnutar "$@" && exit 0
|
||||||
|
fi
|
||||||
|
if (gtar --version > /dev/null 2>&1); then
|
||||||
|
gtar "$@" && exit 0
|
||||||
|
fi
|
||||||
|
firstarg="$1"
|
||||||
|
if shift; then
|
||||||
|
case "$firstarg" in
|
||||||
|
*o*)
|
||||||
|
firstarg=`echo "$firstarg" | sed s/o//`
|
||||||
|
tar "$firstarg" "$@" && exit 0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
case "$firstarg" in
|
||||||
|
*h*)
|
||||||
|
firstarg=`echo "$firstarg" | sed s/h//`
|
||||||
|
tar "$firstarg" "$@" && exit 0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo 1>&2 "\
|
||||||
|
WARNING: I can't seem to be able to run \`tar' with the given arguments.
|
||||||
|
You may want to install GNU tar or Free paxutils, or check the
|
||||||
|
command line arguments."
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
echo 1>&2 "\
|
||||||
|
WARNING: \`$1' is needed, and is $msg.
|
||||||
|
You might have modified some files without having the
|
||||||
|
proper tools for further handling them. Check the \`README' file,
|
||||||
|
it often tells you about the needed prerequisites for installing
|
||||||
|
this package. You may also peek at any GNU archive site, in case
|
||||||
|
some other package would contain this missing \`$1' program."
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
||||||
|
# Local variables:
|
||||||
|
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||||
|
# time-stamp-start: "scriptversion="
|
||||||
|
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||||
|
# time-stamp-end: "$"
|
||||||
|
# End:
|
463
network.c
Normal file
463
network.c
Normal file
@ -0,0 +1,463 @@
|
|||||||
|
/* --------------------------------------------------------------------- *
|
||||||
|
* network.c *
|
||||||
|
* --------------------------------------------------------------------- *
|
||||||
|
* This file is part of the nebula irc client *
|
||||||
|
* http://nebula-irc.sourceforge.net *
|
||||||
|
|
||||||
|
* Copyright (c) 2004 Riccardo Mottola. All rights reserved. *
|
||||||
|
* mail: rmottola@users.sourceforge.net *
|
||||||
|
|
||||||
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
|
/*
|
||||||
|
Copyright (c) 2004-2005, Riccardo Mottola
|
||||||
|
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
Redistributions of source code must retain the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer.
|
||||||
|
Redistributions in binary form must reproduce the abov copyright notice,
|
||||||
|
this list of conditions and the following disclaimer in the documentation
|
||||||
|
and/or other materials provided with the distribution.
|
||||||
|
Neither the name of "Riccardo Mottola" nor the names of its contributors
|
||||||
|
may be used to endorse or promote products derived from this software
|
||||||
|
without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||||
|
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||||
|
ARE DISCLAIMED.
|
||||||
|
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY
|
||||||
|
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||||
|
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||||
|
LOSS OF USE, DATA, OR PROFITS;´OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||||
|
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||||
|
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/socket.h>
|
||||||
|
#include <netinet/in.h>
|
||||||
|
#include <arpa/inet.h> /* for inet_ntoa and similar */
|
||||||
|
#include <netdb.h>
|
||||||
|
#include <strings.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <errno.h>
|
||||||
|
#include <signal.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
|
||||||
|
#include <X11/Intrinsic.h>
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
#include "network.h"
|
||||||
|
#include "signals.h"
|
||||||
|
#include "interpreter.h"
|
||||||
|
|
||||||
|
extern systemStatusRecord sysState;
|
||||||
|
extern XtAppContext nebulaIrcAppContext;
|
||||||
|
extern XtInputId nebulaNetworkEventId;
|
||||||
|
|
||||||
|
/* this function opens the connection to the given server
|
||||||
|
* it also initializes the system information structure sysState
|
||||||
|
* and it logins the user into the server
|
||||||
|
*/
|
||||||
|
int connectToServer(char *servName, int port)
|
||||||
|
{
|
||||||
|
int sock;
|
||||||
|
struct hostent *hostentPtr;
|
||||||
|
struct sockaddr_in sockAddr;
|
||||||
|
char *tempStr;
|
||||||
|
|
||||||
|
appendText("Resolving ");
|
||||||
|
appendText(servName);
|
||||||
|
appendText("... ");
|
||||||
|
if((hostentPtr = gethostbyname(servName)) == NULL)
|
||||||
|
{
|
||||||
|
appendText("Could not resolve ");
|
||||||
|
appendText(servName);
|
||||||
|
appendText("\n");
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
bcopy((char *)hostentPtr->h_addr, (char *)&sockAddr.sin_addr, hostentPtr->h_length);
|
||||||
|
sockAddr.sin_family = PF_INET;
|
||||||
|
sockAddr.sin_port = htons(port);
|
||||||
|
|
||||||
|
tempStr = inet_ntoa(sockAddr.sin_addr);
|
||||||
|
appendText(tempStr);
|
||||||
|
appendText("\n");
|
||||||
|
|
||||||
|
sock = socket(PF_INET, SOCK_STREAM, 0);
|
||||||
|
if (connect(sock, (struct sockaddr*) &sockAddr, sizeof(sockAddr)) < 0)
|
||||||
|
{
|
||||||
|
perror("connect failed: ");
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
appendText("We are connected.\n");
|
||||||
|
|
||||||
|
/* initialize the system structures */
|
||||||
|
sysState.isConnected = YES;
|
||||||
|
sysState.isAuthenticated = NO;
|
||||||
|
sysState.socket = sock;
|
||||||
|
sysState.isInChannel = NO;
|
||||||
|
sysState.isInQuery = NO;
|
||||||
|
strcpy(sysState.serverName, servName);
|
||||||
|
sysState.port = port;
|
||||||
|
|
||||||
|
/* we add our socket to the select file descriptors as an Event source for X */
|
||||||
|
nebulaNetworkEventId = XtAppAddInput(nebulaIrcAppContext, sysState.socket, (XtPointer)(XtInputReadMask), readLine, NULL);
|
||||||
|
|
||||||
|
doNick(sysState.myNick);
|
||||||
|
doUser(sysState.myUnixname, sysState.myHostName, sysState.serverName, sysState.myName);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
void resetStatusToDisconnected()
|
||||||
|
{
|
||||||
|
/* we remove the network from the X event handler again */
|
||||||
|
XtRemoveInput(nebulaNetworkEventId);
|
||||||
|
sysState.isConnected = NO;
|
||||||
|
sysState.isAuthenticated = NO;
|
||||||
|
sysState.isInChannel = NO;
|
||||||
|
sysState.isInQuery = NO;
|
||||||
|
sysState.serverName[0]='\0';
|
||||||
|
sysState.currentChannel[0]='\0';
|
||||||
|
sysState.currentQuery[0]='\0';
|
||||||
|
}
|
||||||
|
|
||||||
|
/* reads one or more lines from the network
|
||||||
|
* possibly splits them up and invokes the interpreter
|
||||||
|
*/
|
||||||
|
void readLine()
|
||||||
|
{
|
||||||
|
char inBuff[MAX_COMMAND_LEN+1];
|
||||||
|
char inLine[MAX_COMMAND_LEN+1];
|
||||||
|
char rest[MAX_COMMAND_LEN+1];
|
||||||
|
int readBytes;
|
||||||
|
int buffLen;
|
||||||
|
char *firstNLPos;
|
||||||
|
|
||||||
|
readBytes = recv(sysState.socket, inBuff, MAX_COMMAND_LEN, 0);
|
||||||
|
if (readBytes < 0)
|
||||||
|
{
|
||||||
|
if (errno == ECONNRESET) /* connection reset by peer */
|
||||||
|
{
|
||||||
|
resetStatusToDisconnected();
|
||||||
|
appendText("Connectioni reset by peer.\n");
|
||||||
|
return;
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
perror("read < 0 bytes from socket");
|
||||||
|
#ifdef DEBUG
|
||||||
|
printf("errno is: %d\n", errno);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (readBytes == 0)
|
||||||
|
{
|
||||||
|
perror("Read 0 bytes from socket. Assuming connection closed.");
|
||||||
|
resetStatusToDisconnected();
|
||||||
|
appendText("Lost connection.\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
inBuff[readBytes] = '\0';
|
||||||
|
buffLen = strlen(inBuff);
|
||||||
|
firstNLPos = strstr(inBuff, "\r\n");
|
||||||
|
if (firstNLPos)
|
||||||
|
{
|
||||||
|
if (firstNLPos - inBuff == buffLen - 2)
|
||||||
|
{
|
||||||
|
#ifdef DEBUG
|
||||||
|
printf("The NL is only at the end\n");
|
||||||
|
#endif
|
||||||
|
inBuff[readBytes - 2] = '\0';
|
||||||
|
#ifdef DEBUG
|
||||||
|
printf("|%s|\n", inBuff);
|
||||||
|
assert(strstr(inBuff, "\r\n") == NULL);
|
||||||
|
assert(strlen(inBuff) < MAX_COMMAND_LEN);
|
||||||
|
#endif
|
||||||
|
interpretMessage(inBuff);
|
||||||
|
return;
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
while ((firstNLPos - inBuff != buffLen - 2) && (firstNLPos != 0))
|
||||||
|
{
|
||||||
|
int lineLen;
|
||||||
|
int restLen;
|
||||||
|
|
||||||
|
lineLen = firstNLPos - inBuff;
|
||||||
|
strncpy(inLine, inBuff, lineLen);
|
||||||
|
inLine[lineLen] = '\0';
|
||||||
|
#ifdef DEBUG
|
||||||
|
printf("line = |%s|\n", inLine);
|
||||||
|
assert(strstr(inLine, "\r\n") == NULL);
|
||||||
|
assert(strlen(inLine) < MAX_COMMAND_LEN);
|
||||||
|
#endif
|
||||||
|
interpretMessage(inLine);
|
||||||
|
restLen = buffLen - 2 - lineLen;
|
||||||
|
strncpy(rest, inBuff+lineLen+2, restLen);
|
||||||
|
rest[restLen] = '\0';
|
||||||
|
strcpy(inBuff, rest);
|
||||||
|
buffLen = strlen(inBuff);
|
||||||
|
firstNLPos = strstr(inBuff, "\r\n");
|
||||||
|
}
|
||||||
|
if (firstNLPos - inBuff == buffLen - 2)
|
||||||
|
{
|
||||||
|
inBuff[strlen(inBuff) - 2] = '\0';
|
||||||
|
#ifdef DEBUG
|
||||||
|
printf("|%s|, %d\n", inBuff, strlen(inBuff));
|
||||||
|
assert(strstr(inBuff, "\r\n") == NULL);
|
||||||
|
assert(strlen(inBuff) < MAX_COMMAND_LEN);
|
||||||
|
#endif
|
||||||
|
interpretMessage(inBuff);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ok what we read was not a full line */
|
||||||
|
/* the buffer was probably full (but it may not be anymore oafter the removal */
|
||||||
|
/* of the complete lines */
|
||||||
|
if (firstNLPos == NULL)
|
||||||
|
{
|
||||||
|
char inBuff2[MAX_COMMAND_LEN+1];
|
||||||
|
char ch[1];
|
||||||
|
int buff2Curs;
|
||||||
|
int gotNewLine;
|
||||||
|
int gotCR;
|
||||||
|
|
||||||
|
buff2Curs = 0;
|
||||||
|
gotNewLine = NO;
|
||||||
|
gotCR = NO;
|
||||||
|
|
||||||
|
printf("We have a not CR_LF terminated input buffer. Reading more.\n");
|
||||||
|
while (buff2Curs < MAX_COMMAND_LEN && !gotNewLine)
|
||||||
|
{
|
||||||
|
if (read(sysState.socket, ch, 1))
|
||||||
|
{
|
||||||
|
inBuff2[buff2Curs++] = *ch;
|
||||||
|
if (*ch == '\r')
|
||||||
|
gotCR = YES;
|
||||||
|
else if (gotCR)
|
||||||
|
{
|
||||||
|
if (*ch == '\n')
|
||||||
|
{
|
||||||
|
#ifdef DEBUG
|
||||||
|
printf("I got a CR-LF\n");
|
||||||
|
#endif
|
||||||
|
gotNewLine = YES;
|
||||||
|
inBuff2[--buff2Curs] = '\0';
|
||||||
|
inBuff2[--buff2Curs] = '\0';
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
gotCR = NO;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (gotNewLine)
|
||||||
|
{
|
||||||
|
if (strlen(inBuff) + strlen(inBuff2) < MAX_COMMAND_LEN)
|
||||||
|
{
|
||||||
|
strcat(inBuff, inBuff2);
|
||||||
|
printf("Complete command is: ||%s||\n", inBuff);
|
||||||
|
#ifdef DEBUG
|
||||||
|
assert(strlen(inBuff) < MAX_COMMAND_LEN);
|
||||||
|
#endif
|
||||||
|
interpretMessage(inBuff);
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
printf("Error: our buffer is to small to fit all the size to the CR-LF\n");
|
||||||
|
}
|
||||||
|
} else
|
||||||
|
printf("We have a not CR_LF terminated input buffer, even on the second attempt.\n");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void sendLine(char *msg)
|
||||||
|
{
|
||||||
|
int len;
|
||||||
|
int sentBytes;
|
||||||
|
|
||||||
|
if (sysState.isConnected == NO)
|
||||||
|
return;
|
||||||
|
len = strlen(msg);
|
||||||
|
if (len <= 0)
|
||||||
|
return;
|
||||||
|
if (len >= MAX_CHUNK_LEN - 2)
|
||||||
|
{
|
||||||
|
msg[MAX_CHUNK_LEN] = '\0';
|
||||||
|
msg[MAX_CHUNK_LEN-1] = '\n';
|
||||||
|
msg[MAX_CHUNK_LEN-2] = '\r';
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
msg[len++] = '\r';
|
||||||
|
msg[len] = '\n';
|
||||||
|
}
|
||||||
|
sentBytes = write(sysState.socket, msg, len);
|
||||||
|
if (sentBytes < len)
|
||||||
|
printf("Couldn't sent whole message.\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
void disconnectFromServer()
|
||||||
|
{
|
||||||
|
/* close the socket if we are connected*/
|
||||||
|
if (sysState.isConnected)
|
||||||
|
close(sysState.socket);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* nick is copied into the system status structure
|
||||||
|
* a check if the argument poitner is the same address as the sysState struct is done
|
||||||
|
* but beware of overlapping strings
|
||||||
|
*/
|
||||||
|
void doNick(char *nick)
|
||||||
|
{
|
||||||
|
char outBuff[MAX_COMMAND_LEN+1];
|
||||||
|
|
||||||
|
if (!sysState.isAuthenticated)
|
||||||
|
{
|
||||||
|
strcpy(outBuff, "NICK ");
|
||||||
|
strcat(outBuff, nick);
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
sprintf(outBuff, ":%s NICK %s", sysState.myNick, nick);
|
||||||
|
}
|
||||||
|
#ifdef DEBUG
|
||||||
|
assert(strlen(nick) < MAX_NICK_LEN);
|
||||||
|
#endif
|
||||||
|
sendLine(outBuff);
|
||||||
|
|
||||||
|
/* check if strings are the same */
|
||||||
|
if (nick != sysState.myNick)
|
||||||
|
strcpy(sysState.myNick, nick);
|
||||||
|
}
|
||||||
|
|
||||||
|
void doUser(char *username, char *hostname, char *servername, char *realname)
|
||||||
|
/* should check for total length */
|
||||||
|
{
|
||||||
|
char outBuff[MAX_COMMAND_LEN+1];
|
||||||
|
|
||||||
|
if (strlen(username) + strlen(hostname) + strlen(servername) + strlen(realname) > MAX_COMMAND_LEN-9)
|
||||||
|
{
|
||||||
|
printf("command generated in doUser() is too long\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
strcpy(outBuff, "USER ");
|
||||||
|
strcat(outBuff, username);
|
||||||
|
strcat(outBuff, " ");
|
||||||
|
strcat(outBuff, hostname);
|
||||||
|
strcat(outBuff, " ");
|
||||||
|
strcat(outBuff, servername);
|
||||||
|
strcat(outBuff, " :");
|
||||||
|
strcat(outBuff, realname);
|
||||||
|
printf("sending: %s\n", outBuff);
|
||||||
|
sendLine(outBuff);
|
||||||
|
}
|
||||||
|
|
||||||
|
void doPrivateMsg(char *recipient, char *message)
|
||||||
|
/* should check for total length */
|
||||||
|
{
|
||||||
|
char outBuff[MAX_COMMAND_LEN+1];
|
||||||
|
char localEcho[MAX_COMMAND_LEN+1];
|
||||||
|
|
||||||
|
sprintf(outBuff, ":%s PRIVMSG %s :%s", sysState.myNick, recipient, message);
|
||||||
|
sendLine(outBuff);
|
||||||
|
if (!strcmp(recipient, sysState.currentChannel))
|
||||||
|
sprintf(localEcho, "%s : %s\n", sysState.myNick, message);
|
||||||
|
else
|
||||||
|
sprintf(localEcho, "[ %s ] : %s\n", sysState.myNick, message);
|
||||||
|
appendText(localEcho);
|
||||||
|
}
|
||||||
|
|
||||||
|
void doPong(char *dest)
|
||||||
|
{
|
||||||
|
char outBuff[MAX_COMMAND_LEN];
|
||||||
|
|
||||||
|
strcpy(outBuff, "PONG ");
|
||||||
|
strcat(outBuff, dest);
|
||||||
|
sendLine(outBuff);
|
||||||
|
#ifdef DEBUG
|
||||||
|
printf("Sent Pong to: %s\n", dest);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
void doJoin(char *chan)
|
||||||
|
{
|
||||||
|
char outBuff[MAX_COMMAND_LEN];
|
||||||
|
|
||||||
|
strcpy(outBuff, "JOIN ");
|
||||||
|
strcat(outBuff, chan);
|
||||||
|
sendLine(outBuff);
|
||||||
|
|
||||||
|
sysState.isInChannel = YES;
|
||||||
|
strcpy(sysState.currentChannel, chan);
|
||||||
|
}
|
||||||
|
|
||||||
|
void doPart(char *chan)
|
||||||
|
{
|
||||||
|
char outBuff[MAX_COMMAND_LEN];
|
||||||
|
|
||||||
|
strcpy(outBuff, "PART ");
|
||||||
|
if (strcmp(chan, "*"))
|
||||||
|
{
|
||||||
|
strcat(outBuff, chan);
|
||||||
|
if (strcmp(chan, sysState.currentChannel))
|
||||||
|
sysState.isInChannel = NO;
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
sysState.isInChannel = NO;
|
||||||
|
strcat(outBuff, sysState.currentChannel);
|
||||||
|
}
|
||||||
|
sendLine(outBuff);
|
||||||
|
}
|
||||||
|
|
||||||
|
void doMode (char *recipient, char *option, char *limit, char *user, char *banmask)
|
||||||
|
{
|
||||||
|
char outBuff[MAX_COMMAND_LEN];
|
||||||
|
|
||||||
|
sprintf(outBuff, "MODE %s %s %s %s %s", recipient, option, limit, user, banmask);
|
||||||
|
printf ("%s\n", outBuff);
|
||||||
|
sendLine(outBuff);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void doWhois(char *nick)
|
||||||
|
{
|
||||||
|
char outBuff[MAX_COMMAND_LEN];
|
||||||
|
|
||||||
|
strcpy(outBuff, "WHOIS ");
|
||||||
|
strcat(outBuff, nick);
|
||||||
|
sendLine(outBuff);
|
||||||
|
}
|
||||||
|
|
||||||
|
void doCTCPVersion (char *recipient)
|
||||||
|
{
|
||||||
|
char tempStr[2*MAX_COMMAND_LEN+2];
|
||||||
|
char localEcho[MAX_COMMAND_LEN+1];
|
||||||
|
|
||||||
|
sprintf(tempStr, ":%s PRIVMSG %s :\001VERSION\001\n", sysState.myNick, recipient);
|
||||||
|
sendLine(tempStr);
|
||||||
|
sprintf(localEcho, "[ requested Version from %s ]\n", recipient);
|
||||||
|
appendText(localEcho);
|
||||||
|
}
|
||||||
|
|
||||||
|
void doCTCPAction(char *recipient, char *message)
|
||||||
|
/* should check for total length */
|
||||||
|
{
|
||||||
|
char outBuff[MAX_COMMAND_LEN+1];
|
||||||
|
char localEcho[MAX_COMMAND_LEN+1];
|
||||||
|
|
||||||
|
sprintf(outBuff, ":%s PRIVMSG %s :\001ACTION %s\001", sysState.myNick, recipient, message);
|
||||||
|
sendLine(outBuff);
|
||||||
|
if (!strcmp(recipient, sysState.currentChannel))
|
||||||
|
sprintf(localEcho, "-- %s %s\n", sysState.myNick, message);
|
||||||
|
else
|
||||||
|
sprintf(localEcho, "[%s] %s\n", sysState.myNick, message);
|
||||||
|
appendText(localEcho);
|
||||||
|
}
|
56
network.h
Normal file
56
network.h
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
/* --------------------------------------------------------------------- *
|
||||||
|
* network.h *
|
||||||
|
* --------------------------------------------------------------------- *
|
||||||
|
* This file is part of the nebula irc client *
|
||||||
|
* http://nebula-irc.sourceforge.net *
|
||||||
|
|
||||||
|
* Copyright (c) 2004 Riccardo Mottola. All rights reserved. *
|
||||||
|
* mail: rmottola@users.sourceforge.net *
|
||||||
|
|
||||||
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
|
/*
|
||||||
|
Copyright (c) 2004, Riccardo Mottola
|
||||||
|
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
Redistributions of source code must retain the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer.
|
||||||
|
Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer in the documentation
|
||||||
|
and/or other materials provided with the distribution.
|
||||||
|
Neither the name of "Riccardo Mottola" nor the names of its contributors
|
||||||
|
may be used to endorse or promote products derived from this software
|
||||||
|
without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||||
|
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||||
|
ARE DISCLAIMED.
|
||||||
|
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY
|
||||||
|
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||||
|
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||||
|
LOSS OF USE, DATA, OR PROFITS;´OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||||
|
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||||
|
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
int connectToServer(char *servName, int port);
|
||||||
|
void disconnectFromServer();
|
||||||
|
void readLine();
|
||||||
|
void sendLine(char *msg);
|
||||||
|
|
||||||
|
void doNick(char *nick);
|
||||||
|
void doUser(char *username, char *hostname, char *servername, char *realname);
|
||||||
|
void doPrivateMsg(char *recipient, char *message);
|
||||||
|
void doPong(char *dest);
|
||||||
|
void doJoin(char *chan);
|
||||||
|
void doPart(char *chan);
|
||||||
|
void doMode (char *recipient, char *option, char *limit, char *user, char *banmask);
|
||||||
|
void doWhois(char *nick);
|
||||||
|
void doCTCPVersion (char *recipient);
|
||||||
|
void doCTCPAction(char *recipient, char *message);
|
566
preferences.c
Normal file
566
preferences.c
Normal file
@ -0,0 +1,566 @@
|
|||||||
|
/* --------------------------------------------------------------------- *
|
||||||
|
* preferences.c *
|
||||||
|
* --------------------------------------------------------------------- *
|
||||||
|
* This file is part of the nebula irc client *
|
||||||
|
* http://nebula-irc.sourceforge.net *
|
||||||
|
|
||||||
|
* Copyright (c) 2004-2005 Riccardo Mottola. All rights reserved. *
|
||||||
|
* mail: rmottola@users.sourceforge.net *
|
||||||
|
|
||||||
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
|
/*
|
||||||
|
Copyright (c) 2004-2005, Riccardo Mottola
|
||||||
|
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
Redistributions of source code must retain the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer.
|
||||||
|
Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer in the documentation
|
||||||
|
and/or other materials provided with the distribution.
|
||||||
|
Neither the name of "Riccardo Mottola" nor the names of its contributors
|
||||||
|
may be used to endorse or promote products derived from this software
|
||||||
|
without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||||
|
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||||
|
ARE DISCLAIMED.
|
||||||
|
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY
|
||||||
|
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||||
|
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||||
|
LOSS OF USE, DATA, OR PROFITS;´OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||||
|
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||||
|
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <Xm/Xm.h>
|
||||||
|
#include <Xm/Form.h>
|
||||||
|
#include <Xm/PushB.h>
|
||||||
|
#include <Xm/Label.h>
|
||||||
|
#include <Xm/TextF.h>
|
||||||
|
#include <Xm/Text.h>
|
||||||
|
#include <Xm/SelectioB.h>
|
||||||
|
#include <Xm/MessageB.h>
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
#include "preferences.h"
|
||||||
|
#include "network.h"
|
||||||
|
|
||||||
|
#ifndef XmFONTLIST_DEFAULT_TAG
|
||||||
|
#define XmFONTLIST_DEFAULT_TAG ""
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define FILE_BUFF_SIZE 1024
|
||||||
|
|
||||||
|
extern systemStatusRecord sysState;
|
||||||
|
extern XtAppContext nebulaIrcAppContext;
|
||||||
|
|
||||||
|
Widget startPref;
|
||||||
|
Widget startPrefDiag;
|
||||||
|
|
||||||
|
void okButtStartupCbk();
|
||||||
|
void helpButtStartupCbk();
|
||||||
|
void okButtPrefCbk();
|
||||||
|
void helpButtPrefCbk();
|
||||||
|
|
||||||
|
Widget nickTextForm;
|
||||||
|
Widget nameTextForm;
|
||||||
|
Widget serverTextForm;
|
||||||
|
Widget portTextForm;
|
||||||
|
|
||||||
|
void getStartupPrefs(Widget mainWin)
|
||||||
|
{
|
||||||
|
Widget prefForm;
|
||||||
|
Widget portLabel;
|
||||||
|
Widget child;
|
||||||
|
XmString labelString;
|
||||||
|
Arg args[4];
|
||||||
|
int argcount;
|
||||||
|
FILE *confFile;
|
||||||
|
char serverPortNum[6];
|
||||||
|
char *confFilePath;
|
||||||
|
|
||||||
|
|
||||||
|
argcount = 0;
|
||||||
|
labelString = XM_STRING_CREATE("Startup Prefs");
|
||||||
|
XtSetArg(args[argcount], XmNdialogTitle, labelString); argcount++;
|
||||||
|
XtSetArg(args[argcount], XmNautoUnmanage, True); argcount++;
|
||||||
|
startPrefDiag = XmCreatePromptDialog(mainWin, "startup_prefs", args, argcount);
|
||||||
|
XmStringFree(labelString);
|
||||||
|
|
||||||
|
/* Now get rid of the things we don't want */
|
||||||
|
child = XmSelectionBoxGetChild(startPrefDiag, XmDIALOG_SELECTION_LABEL);
|
||||||
|
XtUnmanageChild(child);
|
||||||
|
child = XmSelectionBoxGetChild(startPrefDiag, XmDIALOG_TEXT);
|
||||||
|
XtUnmanageChild(child);
|
||||||
|
|
||||||
|
prefForm = XtVaCreateWidget("form", xmFormWidgetClass, startPrefDiag,
|
||||||
|
XmNfractionBase, 18, NULL);
|
||||||
|
|
||||||
|
labelString = XM_STRING_CREATE("Name:");
|
||||||
|
XtVaCreateManagedWidget("name_label",
|
||||||
|
xmLabelWidgetClass, prefForm,
|
||||||
|
XmNlabelString, labelString,
|
||||||
|
XmNtopAttachment, XmATTACH_POSITION, XmNtopPosition, 0,
|
||||||
|
XmNleftAttachment, XmATTACH_POSITION, XmNleftPosition, 0,
|
||||||
|
NULL);
|
||||||
|
XmStringFree(labelString);
|
||||||
|
|
||||||
|
labelString = XM_STRING_CREATE("Nick:");
|
||||||
|
XtVaCreateManagedWidget("nick_label",
|
||||||
|
xmLabelWidgetClass, prefForm,
|
||||||
|
XmNlabelString, labelString,
|
||||||
|
XmNtopAttachment, XmATTACH_POSITION, XmNtopPosition, 6,
|
||||||
|
XmNleftAttachment, XmATTACH_POSITION, XmNleftPosition, 0,
|
||||||
|
NULL);
|
||||||
|
XmStringFree(labelString);
|
||||||
|
|
||||||
|
labelString = XM_STRING_CREATE("Server:");
|
||||||
|
XtVaCreateManagedWidget("server_label",
|
||||||
|
xmLabelWidgetClass, prefForm,
|
||||||
|
XmNlabelString, labelString,
|
||||||
|
XmNtopAttachment, XmATTACH_POSITION, XmNtopPosition, 12,
|
||||||
|
XmNleftAttachment, XmATTACH_POSITION, XmNleftPosition, 0,
|
||||||
|
NULL);
|
||||||
|
XmStringFree(labelString);
|
||||||
|
|
||||||
|
|
||||||
|
nameTextForm = XtVaCreateManagedWidget("name_form",
|
||||||
|
xmTextFieldWidgetClass, prefForm,
|
||||||
|
XmNmaxLength, MAX_NAME_LEN,
|
||||||
|
XmNtopAttachment, XmATTACH_POSITION, XmNtopPosition, 0,
|
||||||
|
XmNleftAttachment, XmATTACH_POSITION, XmNleftPosition, 4,
|
||||||
|
XmNrightAttachment, XmATTACH_POSITION, XmNrightPosition, 18,
|
||||||
|
NULL);
|
||||||
|
|
||||||
|
nickTextForm = XtVaCreateManagedWidget("nick_form",
|
||||||
|
xmTextFieldWidgetClass, prefForm,
|
||||||
|
XmNmaxLength, MAX_NICK_LEN,
|
||||||
|
XmNtopAttachment, XmATTACH_POSITION, XmNtopPosition, 6,
|
||||||
|
XmNleftAttachment, XmATTACH_POSITION, XmNleftPosition, 4,
|
||||||
|
XmNrightAttachment, XmATTACH_POSITION, XmNrightPosition, 18,
|
||||||
|
NULL);
|
||||||
|
|
||||||
|
portTextForm = XtVaCreateManagedWidget("port_form",
|
||||||
|
xmTextFieldWidgetClass, prefForm,
|
||||||
|
XmNmaxLength, 5,
|
||||||
|
XmNcolumns, 5,
|
||||||
|
XmNtopAttachment, XmATTACH_POSITION, XmNtopPosition, 12,
|
||||||
|
XmNrightAttachment, XmATTACH_POSITION, XmNrightPosition, 18,
|
||||||
|
NULL);
|
||||||
|
|
||||||
|
labelString = XM_STRING_CREATE("Port: ");
|
||||||
|
portLabel = XtVaCreateManagedWidget("port_label",
|
||||||
|
xmLabelWidgetClass, prefForm,
|
||||||
|
XmNlabelString, labelString,
|
||||||
|
XmNtopAttachment, XmATTACH_POSITION, XmNtopPosition, 12,
|
||||||
|
XmNrightAttachment, XmATTACH_WIDGET, XmNrightWidget, portTextForm,
|
||||||
|
NULL);
|
||||||
|
XmStringFree(labelString);
|
||||||
|
|
||||||
|
serverTextForm = XtVaCreateManagedWidget("server_form",
|
||||||
|
xmTextFieldWidgetClass, prefForm,
|
||||||
|
XmNmaxLength, MAX_SERVERNAME_LEN,
|
||||||
|
XmNtopAttachment, XmATTACH_POSITION, XmNtopPosition, 12,
|
||||||
|
XmNleftAttachment, XmATTACH_POSITION, XmNleftPosition, 4,
|
||||||
|
XmNrightAttachment, XmATTACH_WIDGET, XmNrightWidget, portLabel,
|
||||||
|
NULL);
|
||||||
|
|
||||||
|
|
||||||
|
XtAddCallback(startPrefDiag, XmNokCallback, okButtStartupCbk, NULL);
|
||||||
|
XtAddCallback(startPrefDiag, XmNhelpCallback, helpButtStartupCbk, NULL);
|
||||||
|
|
||||||
|
XtManageChild(prefForm);
|
||||||
|
|
||||||
|
XtManageChild(startPrefDiag);
|
||||||
|
|
||||||
|
/* read configuration file */
|
||||||
|
if ((confFilePath = getPreferencesFilePath()))
|
||||||
|
{
|
||||||
|
confFile = fopen (confFilePath, "r");
|
||||||
|
if (confFile)
|
||||||
|
{
|
||||||
|
char buff[FILE_BUFF_SIZE];
|
||||||
|
char *pos;
|
||||||
|
|
||||||
|
fgets(buff, FILE_BUFF_SIZE, confFile);
|
||||||
|
if (buff[strlen(buff)-1] == '\n')
|
||||||
|
buff[strlen(buff)-1] = '\0';
|
||||||
|
if(!strncmp(buff, "DefaultNick", strlen("DefaultNick")))
|
||||||
|
if ((pos = strchr(buff, ' ')))
|
||||||
|
strcpy(sysState.myNick, pos+1);
|
||||||
|
fgets(buff, FILE_BUFF_SIZE, confFile);
|
||||||
|
if (buff[strlen(buff)-1] == '\n')
|
||||||
|
buff[strlen(buff)-1] = '\0';
|
||||||
|
if(!strncmp(buff, "DefaultName", strlen("DefaultName")))
|
||||||
|
if ((pos = strchr(buff, ' ')))
|
||||||
|
strcpy(sysState.myName, pos+1);
|
||||||
|
fgets(buff, FILE_BUFF_SIZE, confFile);
|
||||||
|
if (buff[strlen(buff)-1] == '\n')
|
||||||
|
buff[strlen(buff)-1] = '\0';
|
||||||
|
if(!strncmp(buff, "DefaultServer", strlen("DefaultServer")))
|
||||||
|
if ((pos = strchr(buff, ' ')))
|
||||||
|
strcpy(sysState.serverName, pos+1);
|
||||||
|
fgets(buff, FILE_BUFF_SIZE, confFile);
|
||||||
|
if (buff[strlen(buff)-1] == '\n')
|
||||||
|
buff[strlen(buff)-1] = '\0';
|
||||||
|
if(!strncmp(buff, "DefaultPortNum", strlen("DefaultPortNum")))
|
||||||
|
if ((pos = strchr(buff, ' ')))
|
||||||
|
strcpy(serverPortNum, pos+1);
|
||||||
|
fclose(confFile);
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
printf("config file not found.\n");
|
||||||
|
strcpy(sysState.myNick, "");
|
||||||
|
strcpy(sysState.myName, "Nebula User");
|
||||||
|
strcpy(sysState.serverName, "irc.freenode.org");
|
||||||
|
strcpy(serverPortNum, "6666");
|
||||||
|
}
|
||||||
|
free(confFilePath);
|
||||||
|
}
|
||||||
|
XmTextSetString(nickTextForm, sysState.myNick);
|
||||||
|
XmTextSetString(nameTextForm, sysState.myName);
|
||||||
|
XmTextSetString(serverTextForm, sysState.serverName);
|
||||||
|
XmTextSetString(portTextForm, serverPortNum);
|
||||||
|
}
|
||||||
|
|
||||||
|
void okButtStartupCbk()
|
||||||
|
{
|
||||||
|
char *nick;
|
||||||
|
char *name;
|
||||||
|
char *server;
|
||||||
|
char *port;
|
||||||
|
char theServer[MAX_SERVERNAME_LEN];
|
||||||
|
|
||||||
|
nick = XmTextGetString(nickTextForm);
|
||||||
|
name = XmTextGetString(nameTextForm);
|
||||||
|
server = XmTextGetString(serverTextForm);
|
||||||
|
port = XmTextGetString(portTextForm);
|
||||||
|
if (strlen(nick) > 0 && strlen(nick) <= MAX_NICK_LEN)
|
||||||
|
strcpy(sysState.myNick, nick);
|
||||||
|
else
|
||||||
|
strcpy(sysState.myNick, "");
|
||||||
|
if (strlen(name) > 0 && strlen(name) <= MAX_NAME_LEN)
|
||||||
|
strcpy(sysState.myName, name);
|
||||||
|
else
|
||||||
|
strcpy(sysState.myName, "nebula user");
|
||||||
|
if (strlen(server) > 0 &&strlen(server) <= MAX_SERVERNAME_LEN)
|
||||||
|
strcpy(theServer, server);
|
||||||
|
else
|
||||||
|
strcpy(theServer, "irc.freenode.org");
|
||||||
|
printf("port: %s, %d\n", port, atoi(port));
|
||||||
|
if (strlen(port) > 0 && strlen(port) <= 5)
|
||||||
|
{
|
||||||
|
sysState.port = atoi(port);
|
||||||
|
if (sysState.port <= 0)
|
||||||
|
sysState.port = 6666;
|
||||||
|
} else
|
||||||
|
sysState.port = 6666;
|
||||||
|
|
||||||
|
connectToServer(theServer, sysState.port);
|
||||||
|
}
|
||||||
|
|
||||||
|
void helpButtStartupCbk()
|
||||||
|
{
|
||||||
|
XmString theXmString, theXmString2;
|
||||||
|
Arg args[8];
|
||||||
|
int argcount;
|
||||||
|
Widget remove;
|
||||||
|
Widget startupPrefsHelpDlgBox;
|
||||||
|
|
||||||
|
argcount = 0;
|
||||||
|
theXmString = XM_STRING_CREATE("Help");
|
||||||
|
XtSetArg(args[argcount], XmNdialogTitle, theXmString); argcount++;
|
||||||
|
theXmString2 = XM_STRING_GEN_COMP("Set nickname and name you want to use.\n\nEnter the server you want to connect to.");
|
||||||
|
XtSetArg(args[argcount], XmNmessageString, theXmString2); argcount++;
|
||||||
|
XtSetArg(args[argcount], XmNautoUnmanage, True); argcount++;
|
||||||
|
startupPrefsHelpDlgBox = XmCreateInformationDialog(startPrefDiag, "help", args, argcount);
|
||||||
|
XmStringFree(theXmString);
|
||||||
|
XmStringFree(theXmString2);
|
||||||
|
|
||||||
|
/* Now get rid of the things we don't want */
|
||||||
|
remove = XmMessageBoxGetChild(startupPrefsHelpDlgBox, XmDIALOG_HELP_BUTTON);
|
||||||
|
XtUnmanageChild(remove);
|
||||||
|
remove = XmMessageBoxGetChild(startupPrefsHelpDlgBox, XmDIALOG_CANCEL_BUTTON);
|
||||||
|
XtUnmanageChild(remove);
|
||||||
|
XtManageChild(startupPrefsHelpDlgBox);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* ---- set preferences ----- */
|
||||||
|
|
||||||
|
void setPreferences(Widget mainWin)
|
||||||
|
{
|
||||||
|
Widget prefForm;
|
||||||
|
Widget portLabel;
|
||||||
|
Widget child;
|
||||||
|
XmString labelString;
|
||||||
|
Arg args[4];
|
||||||
|
int argcount;
|
||||||
|
FILE *confFile;
|
||||||
|
char serverPortNum[6];
|
||||||
|
char *confFilePath;
|
||||||
|
char serverName[MAX_SERVERNAME_LEN];
|
||||||
|
char myNick[MAX_NICK_LEN];
|
||||||
|
char myName[MAX_NAME_LEN];
|
||||||
|
|
||||||
|
argcount = 0;
|
||||||
|
labelString = XM_STRING_CREATE("Startup Prefs");
|
||||||
|
XtSetArg(args[argcount], XmNdialogTitle, labelString); argcount++;
|
||||||
|
XtSetArg(args[argcount], XmNautoUnmanage, True); argcount++;
|
||||||
|
startPrefDiag = XmCreatePromptDialog(mainWin, "startup_prefs", args, argcount);
|
||||||
|
XmStringFree(labelString);
|
||||||
|
|
||||||
|
/* Now get rid of the things we don't want */
|
||||||
|
child = XmSelectionBoxGetChild(startPrefDiag, XmDIALOG_SELECTION_LABEL);
|
||||||
|
XtUnmanageChild(child);
|
||||||
|
child = XmSelectionBoxGetChild(startPrefDiag, XmDIALOG_TEXT);
|
||||||
|
XtUnmanageChild(child);
|
||||||
|
|
||||||
|
prefForm = XtVaCreateWidget("form", xmFormWidgetClass, startPrefDiag,
|
||||||
|
XmNfractionBase, 18, NULL);
|
||||||
|
|
||||||
|
labelString = XM_STRING_CREATE("Name:");
|
||||||
|
XtVaCreateManagedWidget("name_label",
|
||||||
|
xmLabelWidgetClass, prefForm,
|
||||||
|
XmNlabelString, labelString,
|
||||||
|
XmNtopAttachment, XmATTACH_POSITION, XmNtopPosition, 0,
|
||||||
|
XmNleftAttachment, XmATTACH_POSITION, XmNleftPosition, 0,
|
||||||
|
NULL);
|
||||||
|
XmStringFree(labelString);
|
||||||
|
|
||||||
|
labelString = XM_STRING_CREATE("Nick:");
|
||||||
|
XtVaCreateManagedWidget("nick_label",
|
||||||
|
xmLabelWidgetClass, prefForm,
|
||||||
|
XmNlabelString, labelString,
|
||||||
|
XmNtopAttachment, XmATTACH_POSITION, XmNtopPosition, 6,
|
||||||
|
XmNleftAttachment, XmATTACH_POSITION, XmNleftPosition, 0,
|
||||||
|
NULL);
|
||||||
|
XmStringFree(labelString);
|
||||||
|
|
||||||
|
labelString = XM_STRING_CREATE("Server:");
|
||||||
|
XtVaCreateManagedWidget("server_label",
|
||||||
|
xmLabelWidgetClass, prefForm,
|
||||||
|
XmNlabelString, labelString,
|
||||||
|
XmNtopAttachment, XmATTACH_POSITION, XmNtopPosition, 12,
|
||||||
|
XmNleftAttachment, XmATTACH_POSITION, XmNleftPosition, 0,
|
||||||
|
NULL);
|
||||||
|
XmStringFree(labelString);
|
||||||
|
|
||||||
|
|
||||||
|
nameTextForm = XtVaCreateManagedWidget("name_form",
|
||||||
|
xmTextFieldWidgetClass, prefForm,
|
||||||
|
XmNmaxLength, MAX_NAME_LEN,
|
||||||
|
XmNtopAttachment, XmATTACH_POSITION, XmNtopPosition, 0,
|
||||||
|
XmNleftAttachment, XmATTACH_POSITION, XmNleftPosition, 4,
|
||||||
|
XmNrightAttachment, XmATTACH_POSITION, XmNrightPosition, 18,
|
||||||
|
NULL);
|
||||||
|
|
||||||
|
nickTextForm = XtVaCreateManagedWidget("nick_form",
|
||||||
|
xmTextFieldWidgetClass, prefForm,
|
||||||
|
XmNmaxLength, MAX_NICK_LEN,
|
||||||
|
XmNtopAttachment, XmATTACH_POSITION, XmNtopPosition, 6,
|
||||||
|
XmNleftAttachment, XmATTACH_POSITION, XmNleftPosition, 4,
|
||||||
|
XmNrightAttachment, XmATTACH_POSITION, XmNrightPosition, 18,
|
||||||
|
NULL);
|
||||||
|
|
||||||
|
portTextForm = XtVaCreateManagedWidget("port_form",
|
||||||
|
xmTextFieldWidgetClass, prefForm,
|
||||||
|
XmNmaxLength, 5,
|
||||||
|
XmNcolumns, 5,
|
||||||
|
XmNtopAttachment, XmATTACH_POSITION, XmNtopPosition, 12,
|
||||||
|
XmNrightAttachment, XmATTACH_POSITION, XmNrightPosition, 18,
|
||||||
|
NULL);
|
||||||
|
|
||||||
|
labelString = XM_STRING_CREATE("Port: ");
|
||||||
|
portLabel = XtVaCreateManagedWidget("port_label",
|
||||||
|
xmLabelWidgetClass, prefForm,
|
||||||
|
XmNlabelString, labelString,
|
||||||
|
XmNtopAttachment, XmATTACH_POSITION, XmNtopPosition, 12,
|
||||||
|
XmNrightAttachment, XmATTACH_WIDGET, XmNrightWidget, portTextForm,
|
||||||
|
NULL);
|
||||||
|
XmStringFree(labelString);
|
||||||
|
|
||||||
|
serverTextForm = XtVaCreateManagedWidget("server_form",
|
||||||
|
xmTextFieldWidgetClass, prefForm,
|
||||||
|
XmNmaxLength, MAX_SERVERNAME_LEN,
|
||||||
|
XmNtopAttachment, XmATTACH_POSITION, XmNtopPosition, 12,
|
||||||
|
XmNleftAttachment, XmATTACH_POSITION, XmNleftPosition, 4,
|
||||||
|
XmNrightAttachment, XmATTACH_WIDGET, XmNrightWidget, portLabel,
|
||||||
|
NULL);
|
||||||
|
|
||||||
|
|
||||||
|
XtAddCallback(startPrefDiag, XmNokCallback, okButtPrefCbk, NULL);
|
||||||
|
XtAddCallback(startPrefDiag, XmNhelpCallback, helpButtPrefCbk, NULL);
|
||||||
|
|
||||||
|
XtManageChild(prefForm);
|
||||||
|
|
||||||
|
XtManageChild(startPrefDiag);
|
||||||
|
|
||||||
|
/* read configuration file */
|
||||||
|
if ((confFilePath = getPreferencesFilePath()))
|
||||||
|
{
|
||||||
|
confFile = fopen (confFilePath, "r");
|
||||||
|
if (confFile)
|
||||||
|
{
|
||||||
|
char buff[FILE_BUFF_SIZE];
|
||||||
|
char *pos;
|
||||||
|
|
||||||
|
fgets(buff, FILE_BUFF_SIZE, confFile);
|
||||||
|
if (buff[strlen(buff)-1] == '\n')
|
||||||
|
buff[strlen(buff)-1] = '\0';
|
||||||
|
if(!strncmp(buff, "DefaultNick", strlen("DefaultNick")))
|
||||||
|
if ((pos = strchr(buff, ' ')))
|
||||||
|
strcpy(myNick, pos+1);
|
||||||
|
fgets(buff, FILE_BUFF_SIZE, confFile);
|
||||||
|
if (buff[strlen(buff)-1] == '\n')
|
||||||
|
buff[strlen(buff)-1] = '\0';
|
||||||
|
if(!strncmp(buff, "DefaultName", strlen("DefaultName")))
|
||||||
|
if ((pos = strchr(buff, ' ')))
|
||||||
|
strcpy(myName, pos+1);
|
||||||
|
fgets(buff, FILE_BUFF_SIZE, confFile);
|
||||||
|
if (buff[strlen(buff)-1] == '\n')
|
||||||
|
buff[strlen(buff)-1] = '\0';
|
||||||
|
if(!strncmp(buff, "DefaultServer", strlen("DefaultServer")))
|
||||||
|
if ((pos = strchr(buff, ' ')))
|
||||||
|
strcpy(serverName, pos+1);
|
||||||
|
fgets(buff, FILE_BUFF_SIZE, confFile);
|
||||||
|
if (buff[strlen(buff)-1] == '\n')
|
||||||
|
buff[strlen(buff)-1] = '\0';
|
||||||
|
if(!strncmp(buff, "DefaultPortNum", strlen("DefaultPortNum")))
|
||||||
|
if ((pos = strchr(buff, ' ')))
|
||||||
|
strcpy(serverPortNum, pos+1);
|
||||||
|
fclose(confFile);
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
printf("config file not found.\n");
|
||||||
|
strcpy(myNick, "");
|
||||||
|
strcpy(myName, "Nebula User");
|
||||||
|
strcpy(serverName, "irc.freenode.org");
|
||||||
|
strcpy(serverPortNum, "6666");
|
||||||
|
}
|
||||||
|
free(confFilePath);
|
||||||
|
}
|
||||||
|
XmTextSetString(nickTextForm, myNick);
|
||||||
|
XmTextSetString(nameTextForm, myName);
|
||||||
|
XmTextSetString(serverTextForm, serverName);
|
||||||
|
XmTextSetString(portTextForm, serverPortNum);
|
||||||
|
}
|
||||||
|
|
||||||
|
void okButtPrefCbk()
|
||||||
|
{
|
||||||
|
char *nick;
|
||||||
|
char *name;
|
||||||
|
char *server;
|
||||||
|
char *port;
|
||||||
|
char theServer[MAX_SERVERNAME_LEN];
|
||||||
|
char myNick[MAX_NICK_LEN];
|
||||||
|
char myName[MAX_NAME_LEN];
|
||||||
|
char serverPort[6];
|
||||||
|
FILE *confFile;
|
||||||
|
char *confFilePath;
|
||||||
|
|
||||||
|
nick = XmTextGetString(nickTextForm);
|
||||||
|
name = XmTextGetString(nameTextForm);
|
||||||
|
server = XmTextGetString(serverTextForm);
|
||||||
|
port = XmTextGetString(portTextForm);
|
||||||
|
if (strlen(nick) > 0 && strlen(nick) <= MAX_NICK_LEN)
|
||||||
|
strcpy(myNick, nick);
|
||||||
|
else
|
||||||
|
strcpy(myNick, "");
|
||||||
|
if (strlen(name) > 0 && strlen(name) <= MAX_NAME_LEN)
|
||||||
|
strcpy(myName, name);
|
||||||
|
else
|
||||||
|
strcpy(myName, "nebula user");
|
||||||
|
if (strlen(server) > 0 &&strlen(server) <= MAX_SERVERNAME_LEN)
|
||||||
|
strcpy(theServer, server);
|
||||||
|
else
|
||||||
|
strcpy(theServer, "irc.freenode.org");
|
||||||
|
if (strlen(port) > 0 && strlen(port) <= 5)
|
||||||
|
strcpy(serverPort, port);
|
||||||
|
else
|
||||||
|
strcpy(serverPort, "6666");
|
||||||
|
|
||||||
|
/* write out configuration file */
|
||||||
|
if((confFilePath = getPreferencesFilePath()))
|
||||||
|
{
|
||||||
|
confFile = fopen (confFilePath, "w");
|
||||||
|
if (confFile)
|
||||||
|
{
|
||||||
|
fprintf(confFile, "DefaultNick: %s\n", myNick);
|
||||||
|
fprintf(confFile, "DefaultName: %s\n", myName);
|
||||||
|
fprintf(confFile, "DefaultServer: %s\n", theServer);
|
||||||
|
fprintf(confFile, "DefaultPortNum: %s\n", port);
|
||||||
|
fclose(confFile);
|
||||||
|
}
|
||||||
|
free(confFilePath);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void helpButtPrefCbk()
|
||||||
|
{
|
||||||
|
XmString theXmString, theXmString2;
|
||||||
|
Arg args[8];
|
||||||
|
int argcount;
|
||||||
|
Widget remove;
|
||||||
|
Widget startupPrefsHelpDlgBox;
|
||||||
|
|
||||||
|
argcount = 0;
|
||||||
|
theXmString = XM_STRING_CREATE("Help");
|
||||||
|
XtSetArg(args[argcount], XmNdialogTitle, theXmString); argcount++;
|
||||||
|
theXmString2 = XM_STRING_GEN_COMP("This panel sets the startup preferences.\n\
|
||||||
|
Ok will save them to the user\'s defaults.\n\n\
|
||||||
|
Set nickname and name you want to use.\nEnter the server you want to connect to.");
|
||||||
|
XtSetArg(args[argcount], XmNmessageString, theXmString2); argcount++;
|
||||||
|
XtSetArg(args[argcount], XmNautoUnmanage, True); argcount++;
|
||||||
|
startupPrefsHelpDlgBox = XmCreateInformationDialog(startPrefDiag, "help", args, argcount);
|
||||||
|
XmStringFree(theXmString);
|
||||||
|
XmStringFree(theXmString2);
|
||||||
|
|
||||||
|
/* Now get rid of the things we don't want */
|
||||||
|
remove = XmMessageBoxGetChild(startupPrefsHelpDlgBox, XmDIALOG_HELP_BUTTON);
|
||||||
|
XtUnmanageChild(remove);
|
||||||
|
remove = XmMessageBoxGetChild(startupPrefsHelpDlgBox, XmDIALOG_CANCEL_BUTTON);
|
||||||
|
XtUnmanageChild(remove);
|
||||||
|
XtManageChild(startupPrefsHelpDlgBox);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Return the full path to the user preferences file
|
||||||
|
* the caller is responsible of freeing the string if the call was successful
|
||||||
|
* failure will return a NULL pointer
|
||||||
|
*/
|
||||||
|
char* getPreferencesFilePath()
|
||||||
|
{
|
||||||
|
char *homeDirPath;
|
||||||
|
char *filePath;
|
||||||
|
|
||||||
|
filePath = NULL;
|
||||||
|
homeDirPath = getenv("HOME");
|
||||||
|
if (homeDirPath)
|
||||||
|
{
|
||||||
|
filePath = malloc ((strlen(homeDirPath) + strlen(PREF_FILE_NAME) + 1) * sizeof(char)); /* 1 is for the slash */
|
||||||
|
if (filePath == NULL)
|
||||||
|
{
|
||||||
|
perror("Could not allocate string buffer for config file Path");
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
strcpy(filePath, homeDirPath);
|
||||||
|
strcat(filePath, "/");
|
||||||
|
strcat(filePath, PREF_FILE_NAME);
|
||||||
|
}
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
perror("Could not determine home path of the user.");
|
||||||
|
}
|
||||||
|
return filePath;
|
||||||
|
}
|
44
preferences.h
Normal file
44
preferences.h
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
/* --------------------------------------------------------------------- *
|
||||||
|
* preferences.h *
|
||||||
|
* --------------------------------------------------------------------- *
|
||||||
|
* This file is part of the nebula irc client *
|
||||||
|
* http://nebula-irc.sourceforge.net *
|
||||||
|
|
||||||
|
* Copyright (c) 2004-2005 Riccardo Mottola. All rights reserved. *
|
||||||
|
* mail: rmottola@users.sourceforge.net *
|
||||||
|
|
||||||
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
|
/*
|
||||||
|
Copyright (c) 2004-2005, Riccardo Mottola
|
||||||
|
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
Redistributions of source code must retain the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer.
|
||||||
|
Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer in the documentation
|
||||||
|
and/or other materials provided with the distribution.
|
||||||
|
Neither the name of "Riccardo Mottola" nor the names of its contributors
|
||||||
|
may be used to endorse or promote products derived from this software
|
||||||
|
without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||||
|
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||||
|
ARE DISCLAIMED.
|
||||||
|
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY
|
||||||
|
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||||
|
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||||
|
LOSS OF USE, DATA, OR PROFITS;´OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||||
|
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||||
|
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
void getStartupPrefs(Widget mainWin);
|
||||||
|
void setPreferences(Widget mainWin);
|
||||||
|
char* getPreferencesFilePath();
|
71
signals.c
Normal file
71
signals.c
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
/* --------------------------------------------------------------------- *
|
||||||
|
* signals.c *
|
||||||
|
* --------------------------------------------------------------------- *
|
||||||
|
* This file is part of the nebula irc client *
|
||||||
|
* http://nebula-irc.sourceforge.net *
|
||||||
|
|
||||||
|
* Copyright (c) 2004 Riccardo Mottola. All rights reserved. *
|
||||||
|
* mail: rmottola@users.sourceforge.net *
|
||||||
|
|
||||||
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
|
/*
|
||||||
|
Copyright (c) 2004-2005, Riccardo Mottola
|
||||||
|
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
Redistributions of source code must retain the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer.
|
||||||
|
Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer in the documentation
|
||||||
|
and/or other materials provided with the distribution.
|
||||||
|
Neither the name of "Riccardo Mottola" nor the names of its contributors
|
||||||
|
may be used to endorse or promote products derived from this software
|
||||||
|
without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||||
|
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||||
|
ARE DISCLAIMED.
|
||||||
|
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY
|
||||||
|
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||||
|
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||||
|
LOSS OF USE, DATA, OR PROFITS;´OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||||
|
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||||
|
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <signal.h>
|
||||||
|
#include <sys/time.h>
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
#include "network.h"
|
||||||
|
#include "signals.h"
|
||||||
|
|
||||||
|
extern systemStatusRecord sysState;
|
||||||
|
|
||||||
|
|
||||||
|
RETSIGTYPE brokenPipe()
|
||||||
|
{
|
||||||
|
signal(SIGPIPE, brokenPipe);
|
||||||
|
printf("BrokenPipe!\n");
|
||||||
|
if (sysState.isConnected)
|
||||||
|
{
|
||||||
|
printf ("Was connected...n");
|
||||||
|
if (!close(sysState.socket))
|
||||||
|
printf("closed ns\n");
|
||||||
|
} else {
|
||||||
|
printf("This makes no sense!!! broken pipe on a closed socket!\n");
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
|
sysState.isConnected = NO;
|
||||||
|
sysState.isAuthenticated = NO;
|
||||||
|
}
|
||||||
|
|
44
signals.h
Normal file
44
signals.h
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
/* --------------------------------------------------------------------- *
|
||||||
|
* signals.h *
|
||||||
|
* --------------------------------------------------------------------- *
|
||||||
|
* This file is part of the nebula irc client *
|
||||||
|
* http://nebula-irc.sourceforge.net *
|
||||||
|
|
||||||
|
* Copyright (c) 2004 Riccardo Mottola. All rights reserved. *
|
||||||
|
* mail: rmottola@users.sourceforge.net *
|
||||||
|
|
||||||
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
|
/*
|
||||||
|
Copyright (c) 2004-2005, Riccardo Mottola
|
||||||
|
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
Redistributions of source code must retain the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer.
|
||||||
|
Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer in the documentation
|
||||||
|
and/or other materials provided with the distribution.
|
||||||
|
Neither the name of "Riccardo Mottola" nor the names of its contributors
|
||||||
|
may be used to endorse or promote products derived from this software
|
||||||
|
without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||||
|
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||||
|
ARE DISCLAIMED.
|
||||||
|
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY
|
||||||
|
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||||
|
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||||
|
LOSS OF USE, DATA, OR PROFITS;´OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||||
|
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||||
|
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
RETSIGTYPE brokenPipe();
|
82
userlist.c
Normal file
82
userlist.c
Normal file
@ -0,0 +1,82 @@
|
|||||||
|
/* --------------------------------------------------------------------- *
|
||||||
|
* userlist.c *
|
||||||
|
* --------------------------------------------------------------------- *
|
||||||
|
* This file is part of the nebula irc client *
|
||||||
|
* http://nebula-irc.sourceforge.net *
|
||||||
|
|
||||||
|
* Copyright (c) 2005 Riccardo Mottola. All rights reserved. *
|
||||||
|
* mail: rmottola@users.sourceforge.net *
|
||||||
|
|
||||||
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
|
/*
|
||||||
|
Copyright (c) 2005, Riccardo Mottola
|
||||||
|
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
Redistributions of source code must retain the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer.
|
||||||
|
Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer in the documentation
|
||||||
|
and/or other materials provided with the distribution.
|
||||||
|
Neither the name of "Riccardo Mottola" nor the names of its contributors
|
||||||
|
may be used to endorse or promote products derived from this software
|
||||||
|
without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||||
|
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||||
|
ARE DISCLAIMED.
|
||||||
|
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY
|
||||||
|
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||||
|
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||||
|
LOSS OF USE, DATA, OR PROFITS;´OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||||
|
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||||
|
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <Xm/Xm.h>
|
||||||
|
#include <Xm/List.h>
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
void addUserToList(char *nick, Widget listWidget)
|
||||||
|
{
|
||||||
|
XmString tempXmString;
|
||||||
|
|
||||||
|
tempXmString = XM_STRING_CREATE(nick);
|
||||||
|
if (XmListItemExists(listWidget, tempXmString) == False)
|
||||||
|
XmListAddItem(listWidget, tempXmString, 0);
|
||||||
|
XmStringFree(tempXmString);
|
||||||
|
}
|
||||||
|
|
||||||
|
void removeUserFromList(char *nick, Widget listWidget)
|
||||||
|
{
|
||||||
|
XmString tempXmString;
|
||||||
|
|
||||||
|
tempXmString = XM_STRING_CREATE(nick);
|
||||||
|
XmListDeleteItem(listWidget, tempXmString);
|
||||||
|
XmStringFree(tempXmString);
|
||||||
|
}
|
||||||
|
|
||||||
|
void renameUserInList(char *oldNick, char *newNick, Widget listWidget)
|
||||||
|
{
|
||||||
|
XmString tempXmString;
|
||||||
|
|
||||||
|
tempXmString = XM_STRING_CREATE(oldNick);
|
||||||
|
if (XmListItemPos(listWidget, tempXmString))
|
||||||
|
{
|
||||||
|
removeUserFromList(oldNick, listWidget);
|
||||||
|
addUserToList(newNick, listWidget);
|
||||||
|
}
|
||||||
|
XmStringFree(tempXmString);
|
||||||
|
}
|
||||||
|
|
||||||
|
void removeAllUsersFromList(Widget listWidget)
|
||||||
|
{
|
||||||
|
XmListDeleteAllItems(listWidget);
|
||||||
|
}
|
47
userlist.h
Normal file
47
userlist.h
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
/* --------------------------------------------------------------------- *
|
||||||
|
* userlist.h *
|
||||||
|
* --------------------------------------------------------------------- *
|
||||||
|
* This file is part of the nebula irc client *
|
||||||
|
* http://nebula-irc.sourceforge.net *
|
||||||
|
|
||||||
|
* Copyright (c) 2005 Riccardo Mottola. All rights reserved. *
|
||||||
|
* mail: rmottola@users.sourceforge.net *
|
||||||
|
|
||||||
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
|
/*
|
||||||
|
Copyright (c) 2005, Riccardo Mottola
|
||||||
|
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
Redistributions of source code must retain the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer.
|
||||||
|
Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer in the documentation
|
||||||
|
and/or other materials provided with the distribution.
|
||||||
|
Neither the name of "Riccardo Mottola" nor the names of its contributors
|
||||||
|
may be used to endorse or promote products derived from this software
|
||||||
|
without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||||
|
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||||
|
ARE DISCLAIMED.
|
||||||
|
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY
|
||||||
|
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||||
|
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||||
|
LOSS OF USE, DATA, OR PROFITS;´OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||||
|
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||||
|
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <Xm/Xm.h>
|
||||||
|
|
||||||
|
void addUserToList(char *nick, Widget listWidget);
|
||||||
|
void removeUserFromList(char *nick, Widget listWidget);
|
||||||
|
void renameUserInList(char *oldNick, char *newNick, Widget listWidget);
|
||||||
|
void removeAllUsersFromList(Widget listWidget);
|
Loading…
Reference in New Issue
Block a user