Tk-Components

Check-in [60affce8d9]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Progress on getting and setting default URL handler in launcher package
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:60affce8d90c47538df53ea1f842d9813009e9d8
User & Date: kevin 2015-07-09 02:26:08
Context
2015-07-09
02:28
Fix line endings in launcher check-in: ec2041d5c3 user: kevin tags: trunk
02:26
Progress on getting and setting default URL handler in launcher package check-in: 60affce8d9 user: kevin tags: trunk
2015-07-08
01:22
Fix bug in launcher pkgIndex check-in: 56bd9458f3 user: kevin tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to launcher/Makefile.

48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
..
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
...
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
PKG_HEADERS	= 

#========================================================================
# "PKG_LIB_FILE" refers to the library (dynamic or static as per
# configuration options) composed of the named objects.
#========================================================================

PKG_LIB_FILE	= liblauncher1.0.dylib
PKG_STUB_LIB_FILE = liblauncherstub1.0.a

lib_BINARIES	= $(PKG_LIB_FILE)
BINARIES	= $(lib_BINARIES)

SHELL		= /bin/sh

srcdir		= .
................................................................................
INSTALL		= /usr/bin/install -c
INSTALL_PROGRAM	= ${INSTALL}
INSTALL_LIBRARY	= ${INSTALL}
INSTALL_DATA	= ${INSTALL} -m 644
INSTALL_SCRIPT	= ${INSTALL}

PACKAGE_NAME	= launcher
PACKAGE_VERSION	= 1.0
CC		= gcc 
CFLAGS_DEFAULT	= -Os -arch i386 -arch x86_64  
CFLAGS_WARNING	= -Wall
EXEEXT		= 
LDFLAGS_DEFAULT	=  -arch i386 -arch x86_64  -fobjc-gc -framework Cocoa -prebind -headerpad_max_install_names -Wl,-search_paths_first  
MAKE_LIB	= ${SHLIB_LD} -o $@ $(PKG_OBJECTS) ${SHLIB_LD_LIBS} 
MAKE_SHARED_LIB	= ${SHLIB_LD} -o $@ $(PKG_OBJECTS) ${SHLIB_LD_LIBS}
MAKE_STATIC_LIB	= ${STLIB_LD} $@ $(PKG_OBJECTS)
MAKE_STUB_LIB	= ${STLIB_LD} $@ $(PKG_STUB_OBJECTS)
OBJEXT		= o
RANLIB		= :
RANLIB_STUB	= ranlib
SHLIB_CFLAGS	= -fno-common
SHLIB_LD	= ${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT} -Wl,-single_module -current_version 1.0 -compatibility_version 1.0
SHLIB_LD_LIBS	= ${LIBS} -L/Library/Frameworks/Tcl.framework -ltclstub8.5 -L/Library/Frameworks/Tk.framework -ltkstub8.5
STLIB_LD	= ${AR} cr
#TCL_DEFS	= -DPACKAGE_NAME=\"tcl\" -DPACKAGE_TARNAME=\"tcl\" -DPACKAGE_VERSION=\"8.5\" -DPACKAGE_STRING=\"tcl\ 8.5\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DNO_VALUES_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DHAVE_PTHREAD_ATTR_SETSTACKSIZE=1 -DHAVE_PTHREAD_ATFORK=1 -DHAVE_PTHREAD_GET_STACKSIZE_NP=1 -DTCL_THREADS=1 -DTCL_CFGVAL_ENCODING=\"iso8859-1\" -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -DMAC_OSX_TCL=1 -DHAVE_COREFOUNDATION=1 -DHAVE_CAST_TO_UNION=1 -DTCL_SHLIB_EXT=\".dylib\" -DNDEBUG=1 -DTCL_CFG_OPTIMIZED=1 -DTCL_TOMMATH=1 -DMP_PREC=4 -DTCL_WIDE_INT_IS_LONG=1 -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRTOL=1 -DHAVE_WAITPID=1 -DHAVE_GETADDRINFO=1 -DHAVE_GETPWUID_R_5=1 -DHAVE_GETPWUID_R=1 -DHAVE_GETPWNAM_R_5=1 -DHAVE_GETPWNAM_R=1 -DHAVE_GETGRGID_R_5=1 -DHAVE_GETGRGID_R=1 -DHAVE_GETGRNAM_R_5=1 -DHAVE_GETGRNAM_R=1 -DHAVE_MTSAFE_GETHOSTBYNAME=1 -DHAVE_MTSAFE_GETHOSTBYADDR=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_MKTIME=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_STRUCT_STAT_ST_BLOCKS=1 -DHAVE_STRUCT_STAT_ST_BLKSIZE=1 -DHAVE_BLKCNT_T=1 -DHAVE_INTPTR_T=1 -DHAVE_UINTPTR_T=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_LANGINFO=1 -DHAVE_CHFLAGS=1 -DHAVE_GETATTRLIST=1 -DHAVE_COPYFILE_H=1 -DHAVE_COPYFILE=1 -DHAVE_LIBKERN_OSATOMIC_H=1 -DHAVE_OSSPINLOCKLOCK=1 -DUSE_VFORK=1 -DTCL_DEFAULT_ENCODING=\"utf-8\" -DTCL_LOAD_FROM_MEMORY=1 -DTCL_WIDE_CLICKS=1 -DHAVE_AVAILABILITYMACROS_H=1 -DHAVE_WEAK_IMPORT=1 -DHAVE_FTS=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_FILIO_H=1 -DTCL_UNLOAD_DLLS=1 -DUSE_DTRACE=1 -DHAVE_CPUID=1 -DTCL_FRAMEWORK=1 
TCL_BIN_DIR	= /Library/Frameworks/Tcl.framework
TCL_SRC_DIR	= /Users/kevin/tcl-tk-85-main-merge/tcl
TK_BIN_DIR	= /Library/Frameworks/Tk.framework
TK_SRC_DIR	= /Users/kevin/tcl-tk-85-main-merge/tk

# Not used, but retained for reference of what libs Tcl required
#TCL_LIBS	= ${DL_LIBS} ${LIBS} ${MATH_LIBS}

#========================================================================
# TCLLIBPATH seeds the auto_path in Tcl's init.tcl so we can test our
# package without installing.  The other environment variables allow us
................................................................................
EXTRA_PATH	= $(top_builddir):$(TCL_BIN_DIR):$(TK_BIN_DIR)
TCLLIBPATH	= $(top_builddir)
TCLSH_ENV	= TCL_LIBRARY=`echo $(TCL_SRC_DIR)/library`
PKG_ENV		= DYLD_LIBRARY_PATH="$(EXTRA_PATH):$(DYLD_LIBRARY_PATH)" \
		  PATH="$(EXTRA_PATH):$(PATH)" \
		  TCLLIBPATH="$(TCLLIBPATH)"

TCLSH_PROG	= /usr/local/bin/tclsh8.5
TCLSH   	= $(PKG_ENV) $(TCLSH_ENV) $(TCLSH_PROG)

WISH_ENV	= TK_LIBRARY=`echo $(TK_SRC_DIR)/library`
WISH_PROG	= /usr/local/bin/wish8.5
WISH   	= $(PKG_ENV) $(TCLSH_ENV) $(WISH_ENV) $(WISH_PROG)

SHARED_BUILD	= 1

#INCLUDES	=  -I"/Library/Frameworks/Tcl.framework/Headers"
INCLUDES	=  -I"/Library/Frameworks/Tcl.framework/Headers" -I"/Library/Frameworks/Tk.framework/Headers" -I"/Library/Frameworks/Tk.framework/PrivateHeaders" -I"/Users/kevin/tcl-tk-85-main-merge/tk/generic" -I"/Users/kevin/tcl-tk-85-main-merge/tk/unix" -I"/Users/kevin/tcl-tk-85-main-merge/tk/generic/ttk" -I""/Users/kevin/tcl-tk-85-main-merge/tk/xlib"" -I"/Users/kevin/tcl-tk-85-main-merge/tk/macosx" 

PKG_CFLAGS	=  -std=gnu99 -fobjc-gc

# TCL_DEFS is not strictly need here, but if you remove it, then you
# must make sure that configure.in checks for the necessary components
# that your library may use.  TCL_DEFS can actually be a problem if
# you do not compile with a similar machine setup as the Tcl core was
# compiled with.
#DEFS		= $(TCL_DEFS) -DPACKAGE_NAME=\"launcher\" -DPACKAGE_TARNAME=\"launcher\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"launcher\ 1.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DMAC_OSX_TK=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DAC_APPLE_UNIVERSAL_BUILD=1 -DNO_VALUES_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_THREADS=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_STRUCT_STAT64=1 -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 $(PKG_CFLAGS)
DEFS		= -DPACKAGE_NAME=\"launcher\" -DPACKAGE_TARNAME=\"launcher\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"launcher\ 1.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DMAC_OSX_TK=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DAC_APPLE_UNIVERSAL_BUILD=1 -DNO_VALUES_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_THREADS=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_STRUCT_STAT64=1 -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 $(PKG_CFLAGS)

# Move pkgIndex.tcl to 'BINARIES' var if it is generated in the Makefile
CONFIG_CLEAN_FILES = Makefile pkgIndex.tcl
CLEANFILES	= 

CPPFLAGS	= 
LIBS		=  -framework Cocoa -framework CoreFoundation -framework CoreServices 
AR		= ar
CFLAGS		= -arch i386  -fobjc-gc -framework Cocoa -pipe   ${CFLAGS_DEFAULT} ${CFLAGS_WARNING} ${SHLIB_CFLAGS}   
COMPILE		= $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)

#========================================================================
# Start of user-definable TARGETS section
#========================================================================

#========================================================================







|
|







 







|
|
|


|








|
|

|

|

|







 







|



|





|

|






|
|








|







48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
..
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
...
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
PKG_HEADERS	= 

#========================================================================
# "PKG_LIB_FILE" refers to the library (dynamic or static as per
# configuration options) composed of the named objects.
#========================================================================

PKG_LIB_FILE	= liblauncher1.1.dylib
PKG_STUB_LIB_FILE = liblauncherstub1.1.a

lib_BINARIES	= $(PKG_LIB_FILE)
BINARIES	= $(lib_BINARIES)

SHELL		= /bin/sh

srcdir		= .
................................................................................
INSTALL		= /usr/bin/install -c
INSTALL_PROGRAM	= ${INSTALL}
INSTALL_LIBRARY	= ${INSTALL}
INSTALL_DATA	= ${INSTALL} -m 644
INSTALL_SCRIPT	= ${INSTALL}

PACKAGE_NAME	= launcher
PACKAGE_VERSION	= 1.1
CC		= gcc
CFLAGS_DEFAULT	= -Os
CFLAGS_WARNING	= -Wall
EXEEXT		= 
LDFLAGS_DEFAULT	=  -prebind -headerpad_max_install_names -Wl,-search_paths_first 
MAKE_LIB	= ${SHLIB_LD} -o $@ $(PKG_OBJECTS) ${SHLIB_LD_LIBS} 
MAKE_SHARED_LIB	= ${SHLIB_LD} -o $@ $(PKG_OBJECTS) ${SHLIB_LD_LIBS}
MAKE_STATIC_LIB	= ${STLIB_LD} $@ $(PKG_OBJECTS)
MAKE_STUB_LIB	= ${STLIB_LD} $@ $(PKG_STUB_OBJECTS)
OBJEXT		= o
RANLIB		= :
RANLIB_STUB	= ranlib
SHLIB_CFLAGS	= -fno-common
SHLIB_LD	= ${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT} -Wl,-single_module -current_version 1.1 -compatibility_version 1.1
SHLIB_LD_LIBS	= ${LIBS} -L/Library/Frameworks/Tcl.framework -ltclstub8.6 -L/Library/Frameworks/Tk.framework -ltkstub8.6
STLIB_LD	= ${AR} cr
#TCL_DEFS	= -DPACKAGE_NAME=\"tcl\" -DPACKAGE_TARNAME=\"tcl\" -DPACKAGE_VERSION=\"8.6\" -DPACKAGE_STRING=\"tcl\ 8.6\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DNO_VALUES_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DHAVE_PTHREAD_ATTR_SETSTACKSIZE=1 -DHAVE_PTHREAD_ATFORK=1 -DTCL_THREADS=1 -DTCL_CFGVAL_ENCODING=\"iso8859-1\" -DHAVE_ZLIB=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -DHAVE_HIDDEN=1 -DMAC_OSX_TCL=1 -DHAVE_COREFOUNDATION=1 -DHAVE_CAST_TO_UNION=1 -DTCL_SHLIB_EXT=\".dylib\" -DNDEBUG=1 -DTCL_CFG_OPTIMIZED=1 -DTCL_TOMMATH=1 -DMP_PREC=4 -DTCL_WIDE_INT_IS_LONG=1 -DHAVE_GETCWD=1 -DHAVE_MKSTEMP=1 -DHAVE_OPENDIR=1 -DHAVE_STRTOL=1 -DHAVE_WAITPID=1 -DHAVE_GETNAMEINFO=1 -DHAVE_GETADDRINFO=1 -DHAVE_FREEADDRINFO=1 -DHAVE_GAI_STRERROR=1 -DHAVE_STRUCT_ADDRINFO=1 -DHAVE_STRUCT_IN6_ADDR=1 -DHAVE_STRUCT_SOCKADDR_IN6=1 -DHAVE_STRUCT_SOCKADDR_STORAGE=1 -DHAVE_GETPWUID_R_5=1 -DHAVE_GETPWUID_R=1 -DHAVE_GETPWNAM_R_5=1 -DHAVE_GETPWNAM_R=1 -DHAVE_GETGRGID_R_5=1 -DHAVE_GETGRGID_R=1 -DHAVE_GETGRNAM_R_5=1 -DHAVE_GETGRNAM_R=1 -DHAVE_MTSAFE_GETHOSTBYNAME=1 -DHAVE_MTSAFE_GETHOSTBYADDR=1 -DHAVE_TERMIOS_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_MKTIME=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_STRUCT_STAT_ST_BLOCKS=1 -DHAVE_STRUCT_STAT_ST_BLKSIZE=1 -DHAVE_BLKCNT_T=1 -DHAVE_INTPTR_T=1 -DHAVE_UINTPTR_T=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_LANGINFO=1 -DHAVE_CHFLAGS=1 -DHAVE_MKSTEMPS=1 -DHAVE_GETATTRLIST=1 -DHAVE_COPYFILE_H=1 -DHAVE_COPYFILE=1 -DHAVE_LIBKERN_OSATOMIC_H=1 -DHAVE_OSSPINLOCKLOCK=1 -DUSE_VFORK=1 -DTCL_DEFAULT_ENCODING=\"utf-8\" -DTCL_LOAD_FROM_MEMORY=1 -DTCL_WIDE_CLICKS=1 -DHAVE_AVAILABILITYMACROS_H=1 -DHAVE_WEAK_IMPORT=1 -D_DARWIN_C_SOURCE=1 -DHAVE_FTS=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_FILIO_H=1 -DTCL_UNLOAD_DLLS=1 -DUSE_DTRACE=1 -DHAVE_CPUID=1 -DTCL_FRAMEWORK=1 
TCL_BIN_DIR	= /Library/Frameworks/Tcl.framework
TCL_SRC_DIR	= /Users/kevin/tcl-tk-fossil/tcl
TK_BIN_DIR	= /Library/Frameworks/Tk.framework
TK_SRC_DIR	= /Users/kevin/tcl-tk-fossil/tk

# Not used, but retained for reference of what libs Tcl required
#TCL_LIBS	= ${DL_LIBS} ${LIBS} ${MATH_LIBS}

#========================================================================
# TCLLIBPATH seeds the auto_path in Tcl's init.tcl so we can test our
# package without installing.  The other environment variables allow us
................................................................................
EXTRA_PATH	= $(top_builddir):$(TCL_BIN_DIR):$(TK_BIN_DIR)
TCLLIBPATH	= $(top_builddir)
TCLSH_ENV	= TCL_LIBRARY=`echo $(TCL_SRC_DIR)/library`
PKG_ENV		= DYLD_LIBRARY_PATH="$(EXTRA_PATH):$(DYLD_LIBRARY_PATH)" \
		  PATH="$(EXTRA_PATH):$(PATH)" \
		  TCLLIBPATH="$(TCLLIBPATH)"

TCLSH_PROG	= /usr/local/bin/tclsh8.6
TCLSH   	= $(PKG_ENV) $(TCLSH_ENV) $(TCLSH_PROG)

WISH_ENV	= TK_LIBRARY=`echo $(TK_SRC_DIR)/library`
WISH_PROG	= /usr/local/bin/wish8.6
WISH   	= $(PKG_ENV) $(TCLSH_ENV) $(WISH_ENV) $(WISH_PROG)

SHARED_BUILD	= 1

#INCLUDES	=  -I"/Library/Frameworks/Tcl.framework/Headers"
INCLUDES	=  -I"/Library/Frameworks/Tcl.framework/Headers" -I"/Library/Frameworks/Tk.framework/Headers" -I"/Library/Frameworks/Tk.framework/PrivateHeaders" -I"/Users/kevin/tcl-tk-fossil/tk/generic" -I"/Users/kevin/tcl-tk-fossil/tk/unix" -I"/Users/kevin/tcl-tk-fossil/tk/generic/ttk" -I""/Users/kevin/tcl-tk-fossil/tk/xlib"" -I"/Users/kevin/tcl-tk-fossil/tk/macosx" 

PKG_CFLAGS	=  -std=gnu99 

# TCL_DEFS is not strictly need here, but if you remove it, then you
# must make sure that configure.in checks for the necessary components
# that your library may use.  TCL_DEFS can actually be a problem if
# you do not compile with a similar machine setup as the Tcl core was
# compiled with.
#DEFS		= $(TCL_DEFS) -DPACKAGE_NAME=\"launcher\" -DPACKAGE_TARNAME=\"launcher\" -DPACKAGE_VERSION=\"1.1\" -DPACKAGE_STRING=\"launcher\ 1.1\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DMAC_OSX_TK=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DNO_VALUES_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_THREADS=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -DTCL_WIDE_INT_IS_LONG=1 -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 $(PKG_CFLAGS)
DEFS		= -DPACKAGE_NAME=\"launcher\" -DPACKAGE_TARNAME=\"launcher\" -DPACKAGE_VERSION=\"1.1\" -DPACKAGE_STRING=\"launcher\ 1.1\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DMAC_OSX_TK=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DNO_VALUES_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_THREADS=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -DTCL_WIDE_INT_IS_LONG=1 -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 $(PKG_CFLAGS)

# Move pkgIndex.tcl to 'BINARIES' var if it is generated in the Makefile
CONFIG_CLEAN_FILES = Makefile pkgIndex.tcl
CLEANFILES	= 

CPPFLAGS	= 
LIBS		=  -framework Cocoa -framework CoreFoundation -framework CoreServices 
AR		= ar
CFLAGS		= -pipe  ${CFLAGS_DEFAULT} ${CFLAGS_WARNING} ${SHLIB_CFLAGS}  
COMPILE		= $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)

#========================================================================
# Start of user-definable TARGETS section
#========================================================================

#========================================================================

Changes to launcher/config.status.

376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
...
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
...
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
...
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655

656
657
658
659
660
661
662

663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
...
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
## ----------------------------------- ##
## Main body of $CONFIG_STATUS script. ##
## ----------------------------------- ##
# Save the log message, to keep $0 and so on meaningful, and to
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by launcher $as_me 1.0, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  CONFIG_FILES    = $CONFIG_FILES
  CONFIG_HEADERS  = $CONFIG_HEADERS
  CONFIG_LINKS    = $CONFIG_LINKS
  CONFIG_COMMANDS = $CONFIG_COMMANDS
  $ $0 $@
................................................................................
                   instantiate the configuration file FILE

Configuration files:
$config_files

Report bugs to the package provider."

ac_cs_config="'--prefix=/usr/local' '--libdir=/Library/Tcl' '--with-tcl=/Library/Frameworks/Tcl.framework' '--with-tclinclude=/Library/Frameworks/Tcl.framework/Headers' '--with-tk=/Library/Frameworks/Tk.framework' '--with-tkinclude=/Library/Frameworks/Tk.framework/Headers' '--enable-threads' 'CC=gcc ' 'CFLAGS=-arch i386  -arch x86_64 -fobjc-gc -framework Cocoa' 'LDFLAGS= -arch i386 -arch x86_64 -fobjc-gc -framework Cocoa'"
ac_cs_version="\
launcher config.status 1.0
configured by ./configure, generated by GNU Autoconf 2.69,
  with options \"$ac_cs_config\"

Copyright (C) 2012 Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."

ac_pwd='/Users/kevin/tk-components-code/launcher'
srcdir='.'
INSTALL='/usr/bin/install -c'
test -n "$AWK" || AWK=awk
# The default lists apply if the user does not specify any file.
ac_need_defaults=:
while test $# != 0
do
................................................................................

if $ac_cs_silent; then
  exec 6>/dev/null
  ac_configure_extra_args="$ac_configure_extra_args --silent"
fi

if $ac_cs_recheck; then
  set X /bin/sh './configure'  '--prefix=/usr/local' '--libdir=/Library/Tcl' '--with-tcl=/Library/Frameworks/Tcl.framework' '--with-tclinclude=/Library/Frameworks/Tcl.framework/Headers' '--with-tk=/Library/Frameworks/Tk.framework' '--with-tkinclude=/Library/Frameworks/Tk.framework/Headers' '--enable-threads' 'CC=gcc ' 'CFLAGS=-arch i386  -arch x86_64 -fobjc-gc -framework Cocoa' 'LDFLAGS= -arch i386 -arch x86_64 -fobjc-gc -framework Cocoa' $ac_configure_extra_args --no-create --no-recursion
  shift
  $as_echo "running CONFIG_SHELL=/bin/sh $*" >&6
  CONFIG_SHELL='/bin/sh'
  export CONFIG_SHELL
  exec "$@"
fi

................................................................................
else
  ac_cs_awk_cr=$ac_cr
fi

echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cat >>"$ac_tmp/subs1.awk" <<\_ACAWK &&
S["LTLIBOBJS"]=""
S["WISH_PROG"]="/usr/local/bin/wish8.5"
S["TCLSH_PROG"]="/usr/local/bin/tclsh8.5"
S["RANLIB_STUB"]="ranlib"
S["MAKE_STUB_LIB"]="${STLIB_LD} $@ $(PKG_STUB_OBJECTS)"
S["MAKE_STATIC_LIB"]="${STLIB_LD} $@ $(PKG_OBJECTS)"
S["MAKE_SHARED_LIB"]="${SHLIB_LD} -o $@ $(PKG_OBJECTS) ${SHLIB_LD_LIBS}"
S["MAKE_LIB"]="${SHLIB_LD} -o $@ $(PKG_OBJECTS) ${SHLIB_LD_LIBS} "
S["TCL_DBGX"]=""
S["LDFLAGS_DEFAULT"]=" -arch i386  -fobjc-gc -framework Cocoa -prebind -headerpad_max_install_names -Wl,-search_paths_first  "
S["CFLAGS_DEFAULT"]="-Os"
S["LD_LIBRARY_PATH_VAR"]="DYLD_LIBRARY_PATH"
S["SHLIB_CFLAGS"]="-fno-common"
S["SHLIB_LD_LIBS"]="${LIBS} -L/Library/Frameworks/Tcl.framework -ltclstub8.5 -L/Library/Frameworks/Tk.framework -ltkstub8.5"
S["SHLIB_LD"]="${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT} -Wl,-single_module -current_version 1.0 -compatibility_version 1.0"
S["STLIB_LD"]="${AR} cr"
S["CFLAGS_WARNING"]="-Wall"
S["CFLAGS_OPTIMIZE"]="-Os"
S["CFLAGS_DEBUG"]="-g"
S["DL_LIBS"]=""
S["LIBOBJS"]=""
S["CELIB_DIR"]=""
S["AR"]="ar"
S["SHARED_BUILD"]="1"
S["TCL_THREADS"]="1"
S["XMKMF"]=""
S["TK_XLIB_DIR_NATIVE"]="\"/Users/kevin/tcl-tk-85-main-merge/tk/xlib\""
S["TK_TOP_DIR_NATIVE"]="\"/Users/kevin/tcl-tk-85-main-merge/tk\""
S["TK_INCLUDES"]="-I\"/Library/Frameworks/Tk.framework/Headers\" -I\"/Library/Frameworks/Tk.framework/PrivateHeaders\" -I\"/Users/kevin/tcl-tk-85-main-merge/tk/generic\" -I"\
"\"/Users/kevin/tcl-tk-85-main-merge/tk/unix\" -I\"/Users/kevin/tcl-tk-85-main-merge/tk/generic/ttk\" -I\"\"/Users/kevin/tcl-tk-85-main-merge/tk/xlib\"\" -I\""\
"/Users/kevin/tcl-tk-85-main-merge/tk/macosx\""
S["TCL_INCLUDES"]="-I\"/Library/Frameworks/Tcl.framework/Headers\""
S["CLEANFILES"]=""
S["PKG_OBJECTS"]=" launcher.o"
S["PKG_SOURCES"]=" macosx/launcher.c"
S["MATH_LIBS"]=""
S["EGREP"]="/usr/bin/grep -E"
S["GREP"]="/usr/bin/grep"
S["RANLIB"]=":"
S["SET_MAKE"]=""
S["INSTALL_DATA"]="${INSTALL} -m 644"
S["INSTALL_SCRIPT"]="${INSTALL}"
S["INSTALL_PROGRAM"]="${INSTALL}"
S["CPP"]="gcc  -E"
S["OBJEXT"]="o"
S["ac_ct_CC"]="gcc "
S["CPPFLAGS"]=""
S["LDFLAGS"]=" -arch i386  -fobjc-gc -framework Cocoa -prebind -headerpad_max_install_names -Wl,-search_paths_first  "
S["CFLAGS"]="-arch i386  -fobjc-gc -framework Cocoa -pipe   ${CFLAGS_DEFAULT} ${CFLAGS_WARNING} ${SHLIB_CFLAGS}   "
S["CC"]="gcc "
S["TK_XINCLUDES"]=""
S["TK_LIBS"]="   -lpthread -framework CoreFoundation -framework Cocoa -framework Carbon -framework IOKit   -lpthread -framework CoreFoundation "
S["TK_STUB_LIB_SPEC"]="-L/Library/Frameworks/Tk.framework -ltkstub8.5"
S["TK_STUB_LIB_FLAG"]="-ltkstub8.5"
S["TK_STUB_LIB_FILE"]="libtkstub8.5.a"
S["TK_LIB_SPEC"]="-F/Library/Frameworks -framework Tk"
S["TK_LIB_FLAG"]="-framework Tk"
S["TK_LIB_FILE"]="Tk"
S["TK_SRC_DIR"]="/Users/kevin/tcl-tk-85-main-merge/tk"
S["TK_BIN_DIR"]="/Library/Frameworks/Tk.framework"
S["TK_VERSION"]="8.5"
S["TCL_SHLIB_LD_LIBS"]="${LIBS}"
S["TCL_LD_FLAGS"]=" -arch i386 -arch x86_64 -fobjc-gc -framework Cocoa -prebind -headerpad_max_install_names -Wl,-search_paths_first "
S["TCL_EXTRA_CFLAGS"]="-arch i386 -arch x86_64 -fobjc-gc -framework Cocoa -pipe   "
S["TCL_DEFS"]="-DPACKAGE_NAME=\\\"tcl\\\" -DPACKAGE_TARNAME=\\\"tcl\\\" -DPACKAGE_VERSION=\\\"8.5\\\" -DPACKAGE_STRING=\\\"tcl\\ 8.5\\\" -DPACKAGE_BUGREPORT=\\\"\\\" -DSTDC_HEADERS=1 -"\
"DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H"\
"=1 -DHAVE_UNISTD_H=1 -DNO_VALUES_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DHAVE_PTHREAD_ATTR"\
"_SETSTACKSIZE=1 -DHAVE_PTHREAD_ATFORK=1 -DHAVE_PTHREAD_GET_STACKSIZE_NP=1 -DTCL_THREADS=1 -DTCL_CFGVAL_ENCODING=\\\"iso8859-1\\\" -DMODULE_SCOPE=extern\\"\
" __attribute__\\(\\(__visibility__\\(\\\"hidden\\\"\\)\\)\\) -DMAC_OSX_TCL=1 -DHAVE_COREFOUNDATION=1 -DHAVE_CAST_TO_UNION=1 -DTCL_SHLIB_EXT=\\\".dylib\\\" -DNDEBU"\
"G=1 -DTCL_CFG_OPTIMIZED=1 -DTCL_TOMMATH=1 -DMP_PREC=4 -DTCL_WIDE_INT_IS_LONG=1 -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRTOL=1 -DHAVE_WAITPID=1 -DH"\

"AVE_GETADDRINFO=1 -DHAVE_GETPWUID_R_5=1 -DHAVE_GETPWUID_R=1 -DHAVE_GETPWNAM_R_5=1 -DHAVE_GETPWNAM_R=1 -DHAVE_GETGRGID_R_5=1 -DHAVE_GETGRGID_R=1 -DHA"\
"VE_GETGRNAM_R_5=1 -DHAVE_GETGRNAM_R=1 -DHAVE_MTSAFE_GETHOSTBYNAME=1 -DHAVE_MTSAFE_GETHOSTBYADDR=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SY"\
"S_TIME=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_MKTIME=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_STRUCT_STAT_ST_BLOCKS=1 -DHAVE_STRUC"\
"T_STAT_ST_BLKSIZE=1 -DHAVE_BLKCNT_T=1 -DHAVE_INTPTR_T=1 -DHAVE_UINTPTR_T=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_LANGINFO=1 -DHAVE_CHFLAGS=1 -DHAVE_GETATTRLIS"\
"T=1 -DHAVE_COPYFILE_H=1 -DHAVE_COPYFILE=1 -DHAVE_LIBKERN_OSATOMIC_H=1 -DHAVE_OSSPINLOCKLOCK=1 -DUSE_VFORK=1 -DTCL_DEFAULT_ENCODING=\\\"utf-8\\\" -DTCL_L"\
"OAD_FROM_MEMORY=1 -DTCL_WIDE_CLICKS=1 -DHAVE_AVAILABILITYMACROS_H=1 -DHAVE_WEAK_IMPORT=1 -DHAVE_FTS=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_FILIO_H=1 -DTC"\
"L_UNLOAD_DLLS=1 -DUSE_DTRACE=1 -DHAVE_CPUID=1 -DTCL_FRAMEWORK=1 "

S["TCL_LIBS"]="${DL_LIBS} ${LIBS} ${MATH_LIBS}"
S["TCL_STUB_LIB_SPEC"]="-L/Library/Frameworks/Tcl.framework -ltclstub8.5"
S["TCL_STUB_LIB_FLAG"]="-ltclstub8.5"
S["TCL_STUB_LIB_FILE"]="libtclstub8.5.a"
S["TCL_LIB_SPEC"]="-F/Library/Frameworks -framework Tcl"
S["TCL_LIB_FLAG"]="-framework Tcl"
S["TCL_LIB_FILE"]="Tcl"
S["TCL_SRC_DIR"]="/Users/kevin/tcl-tk-85-main-merge/tcl"
S["TCL_BIN_DIR"]="/Library/Frameworks/Tcl.framework"
S["TCL_VERSION"]="8.5"
S["PKG_CFLAGS"]=" -std=gnu99 -fobjc-gc"
S["PKG_LIBS"]=" -framework Cocoa -framework CoreFoundation -framework CoreServices"
S["PKG_INCLUDES"]=""
S["PKG_HEADERS"]=""
S["PKG_TCL_SOURCES"]=""
S["PKG_STUB_OBJECTS"]=""
S["PKG_STUB_SOURCES"]=""
S["PKG_STUB_LIB_FILE"]="liblauncherstub1.0.a"
S["PKG_LIB_FILE"]="liblauncher1.0.dylib"
S["EXEEXT"]=""
S["CYGPATH"]="echo"
S["target_alias"]=""
S["host_alias"]=""
S["build_alias"]=""
S["LIBS"]=""
S["ECHO_T"]=""
S["ECHO_N"]=""
S["ECHO_C"]="\\c"
S["DEFS"]="-DPACKAGE_NAME=\\\"launcher\\\" -DPACKAGE_TARNAME=\\\"launcher\\\" -DPACKAGE_VERSION=\\\"1.0\\\" -DPACKAGE_STRING=\\\"launcher\\ 1.0\\\" -DPACKAGE_BUGREPORT=\\\"\\\" -DP"\
"ACKAGE_URL=\\\"\\\" -DMAC_OSX_TK=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAV"\
"E_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DAC_APPLE_UNIVERSAL_BUILD=1 -DNO_VALUES_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARA"\
"M_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_THREADS=1 -DMODULE_SCOPE=extern\\ __attribute__\\(\\(__visibility__\\(\\\"hidden\\\"\\)\\)\\) "\
"-DTCL_WIDE_INT_TYPE=long\\ long -DHAVE_STRUCT_STAT64=1 -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1"
S["mandir"]="${datarootdir}/man"
S["localedir"]="${datarootdir}/locale"
S["libdir"]="/Library/Tcl"
S["psdir"]="${docdir}"
S["pdfdir"]="${docdir}"
S["dvidir"]="${docdir}"
S["htmldir"]="${docdir}"
................................................................................
S["sbindir"]="${exec_prefix}/sbin"
S["bindir"]="${exec_prefix}/bin"
S["program_transform_name"]="s,x,x,"
S["prefix"]="/usr/local"
S["exec_prefix"]="/usr/local"
S["PACKAGE_URL"]=""
S["PACKAGE_BUGREPORT"]=""
S["PACKAGE_STRING"]="launcher 1.0"
S["PACKAGE_VERSION"]="1.0"
S["PACKAGE_TARNAME"]="launcher"
S["PACKAGE_NAME"]="launcher"
S["PATH_SEPARATOR"]=":"
S["SHELL"]="/bin/sh"
_ACAWK
cat >>"$ac_tmp/subs1.awk" <<_ACAWK &&
  for (key in S) S_is_set[key] = 1







|







 







|

|







|







 







|







 







|
|






|



|
|











|
|
|
|
|












|

|

|
|
|

|
|
|
|



|

|

|
|
|

|
|
|
|
>
|
|
|
|
|
|
|
>

|
|
|



|

|
|






|
|









|

|
|
|







 







|
|







376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
...
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
...
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
...
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
...
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
## ----------------------------------- ##
## Main body of $CONFIG_STATUS script. ##
## ----------------------------------- ##
# Save the log message, to keep $0 and so on meaningful, and to
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by launcher $as_me 1.1, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  CONFIG_FILES    = $CONFIG_FILES
  CONFIG_HEADERS  = $CONFIG_HEADERS
  CONFIG_LINKS    = $CONFIG_LINKS
  CONFIG_COMMANDS = $CONFIG_COMMANDS
  $ $0 $@
................................................................................
                   instantiate the configuration file FILE

Configuration files:
$config_files

Report bugs to the package provider."

ac_cs_config="'--prefix=/usr/local' '--libdir=/Library/Tcl' '--with-tcl=/Library/Frameworks/Tcl.framework' '--with-tclinclude=/Library/Frameworks/Tcl.framework/Headers' '--with-tk=/Library/Frameworks/Tk.framework' '--with-tkinclude=/Library/Frameworks/Tk.framework/Headers' '--enable-threads'"
ac_cs_version="\
launcher config.status 1.1
configured by ./configure, generated by GNU Autoconf 2.69,
  with options \"$ac_cs_config\"

Copyright (C) 2012 Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."

ac_pwd='/Users/kevin/tk-components-fossil/launcher'
srcdir='.'
INSTALL='/usr/bin/install -c'
test -n "$AWK" || AWK=awk
# The default lists apply if the user does not specify any file.
ac_need_defaults=:
while test $# != 0
do
................................................................................

if $ac_cs_silent; then
  exec 6>/dev/null
  ac_configure_extra_args="$ac_configure_extra_args --silent"
fi

if $ac_cs_recheck; then
  set X /bin/sh './configure'  '--prefix=/usr/local' '--libdir=/Library/Tcl' '--with-tcl=/Library/Frameworks/Tcl.framework' '--with-tclinclude=/Library/Frameworks/Tcl.framework/Headers' '--with-tk=/Library/Frameworks/Tk.framework' '--with-tkinclude=/Library/Frameworks/Tk.framework/Headers' '--enable-threads' $ac_configure_extra_args --no-create --no-recursion
  shift
  $as_echo "running CONFIG_SHELL=/bin/sh $*" >&6
  CONFIG_SHELL='/bin/sh'
  export CONFIG_SHELL
  exec "$@"
fi

................................................................................
else
  ac_cs_awk_cr=$ac_cr
fi

echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cat >>"$ac_tmp/subs1.awk" <<\_ACAWK &&
S["LTLIBOBJS"]=""
S["WISH_PROG"]="/usr/local/bin/wish8.6"
S["TCLSH_PROG"]="/usr/local/bin/tclsh8.6"
S["RANLIB_STUB"]="ranlib"
S["MAKE_STUB_LIB"]="${STLIB_LD} $@ $(PKG_STUB_OBJECTS)"
S["MAKE_STATIC_LIB"]="${STLIB_LD} $@ $(PKG_OBJECTS)"
S["MAKE_SHARED_LIB"]="${SHLIB_LD} -o $@ $(PKG_OBJECTS) ${SHLIB_LD_LIBS}"
S["MAKE_LIB"]="${SHLIB_LD} -o $@ $(PKG_OBJECTS) ${SHLIB_LD_LIBS} "
S["TCL_DBGX"]=""
S["LDFLAGS_DEFAULT"]=" -prebind -headerpad_max_install_names -Wl,-search_paths_first "
S["CFLAGS_DEFAULT"]="-Os"
S["LD_LIBRARY_PATH_VAR"]="DYLD_LIBRARY_PATH"
S["SHLIB_CFLAGS"]="-fno-common"
S["SHLIB_LD_LIBS"]="${LIBS} -L/Library/Frameworks/Tcl.framework -ltclstub8.6 -L/Library/Frameworks/Tk.framework -ltkstub8.6"
S["SHLIB_LD"]="${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT} -Wl,-single_module -current_version 1.1 -compatibility_version 1.1"
S["STLIB_LD"]="${AR} cr"
S["CFLAGS_WARNING"]="-Wall"
S["CFLAGS_OPTIMIZE"]="-Os"
S["CFLAGS_DEBUG"]="-g"
S["DL_LIBS"]=""
S["LIBOBJS"]=""
S["CELIB_DIR"]=""
S["AR"]="ar"
S["SHARED_BUILD"]="1"
S["TCL_THREADS"]="1"
S["XMKMF"]=""
S["TK_XLIB_DIR_NATIVE"]="\"/Users/kevin/tcl-tk-fossil/tk/xlib\""
S["TK_TOP_DIR_NATIVE"]="\"/Users/kevin/tcl-tk-fossil/tk\""
S["TK_INCLUDES"]="-I\"/Library/Frameworks/Tk.framework/Headers\" -I\"/Library/Frameworks/Tk.framework/PrivateHeaders\" -I\"/Users/kevin/tcl-tk-fossil/tk/generic\" -I\"/Users"\
"/kevin/tcl-tk-fossil/tk/unix\" -I\"/Users/kevin/tcl-tk-fossil/tk/generic/ttk\" -I\"\"/Users/kevin/tcl-tk-fossil/tk/xlib\"\" -I\"/Users/kevin/tcl-tk-fossil/t"\
"k/macosx\""
S["TCL_INCLUDES"]="-I\"/Library/Frameworks/Tcl.framework/Headers\""
S["CLEANFILES"]=""
S["PKG_OBJECTS"]=" launcher.o"
S["PKG_SOURCES"]=" macosx/launcher.c"
S["MATH_LIBS"]=""
S["EGREP"]="/usr/bin/grep -E"
S["GREP"]="/usr/bin/grep"
S["RANLIB"]=":"
S["SET_MAKE"]=""
S["INSTALL_DATA"]="${INSTALL} -m 644"
S["INSTALL_SCRIPT"]="${INSTALL}"
S["INSTALL_PROGRAM"]="${INSTALL}"
S["CPP"]="gcc -E"
S["OBJEXT"]="o"
S["ac_ct_CC"]="gcc"
S["CPPFLAGS"]=""
S["LDFLAGS"]=" -prebind -headerpad_max_install_names -Wl,-search_paths_first "
S["CFLAGS"]="-pipe  ${CFLAGS_DEFAULT} ${CFLAGS_WARNING} ${SHLIB_CFLAGS}  "
S["CC"]="gcc"
S["TK_XINCLUDES"]=""
S["TK_LIBS"]="   -lpthread -framework CoreFoundation -framework Cocoa -framework Carbon -framework IOKit  -lz  -lpthread -framework CoreFoundation "
S["TK_STUB_LIB_SPEC"]="-L/Library/Frameworks/Tk.framework -ltkstub8.6"
S["TK_STUB_LIB_FLAG"]="-ltkstub8.6"
S["TK_STUB_LIB_FILE"]="libtkstub8.6.a"
S["TK_LIB_SPEC"]="-F/Library/Frameworks -framework Tk"
S["TK_LIB_FLAG"]="-framework Tk"
S["TK_LIB_FILE"]="Tk"
S["TK_SRC_DIR"]="/Users/kevin/tcl-tk-fossil/tk"
S["TK_BIN_DIR"]="/Library/Frameworks/Tk.framework"
S["TK_VERSION"]="8.6"
S["TCL_SHLIB_LD_LIBS"]="${LIBS}"
S["TCL_LD_FLAGS"]=" -prebind -headerpad_max_install_names -Wl,-search_paths_first "
S["TCL_EXTRA_CFLAGS"]="-pipe   "
S["TCL_DEFS"]="-DPACKAGE_NAME=\\\"tcl\\\" -DPACKAGE_TARNAME=\\\"tcl\\\" -DPACKAGE_VERSION=\\\"8.6\\\" -DPACKAGE_STRING=\\\"tcl\\ 8.6\\\" -DPACKAGE_BUGREPORT=\\\"\\\" -DSTDC_HEADERS=1 -"\
"DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H"\
"=1 -DHAVE_UNISTD_H=1 -DNO_VALUES_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DHAVE_PTHREAD_ATTR_SETSTACKSIZE=1 -D"\
"HAVE_PTHREAD_ATFORK=1 -DTCL_THREADS=1 -DTCL_CFGVAL_ENCODING=\\\"iso8859-1\\\" -DHAVE_ZLIB=1 -DMODULE_SCOPE=extern\\ __attribute__\\(\\(__visibility__\\(\\\"hi"\
"dden\\\"\\)\\)\\) -DHAVE_HIDDEN=1 -DMAC_OSX_TCL=1 -DHAVE_COREFOUNDATION=1 -DHAVE_CAST_TO_UNION=1 -DTCL_SHLIB_EXT=\\\".dylib\\\" -DNDEBUG=1 -DTCL_CFG_OPTIMIZE"\
"D=1 -DTCL_TOMMATH=1 -DMP_PREC=4 -DTCL_WIDE_INT_IS_LONG=1 -DHAVE_GETCWD=1 -DHAVE_MKSTEMP=1 -DHAVE_OPENDIR=1 -DHAVE_STRTOL=1 -DHAVE_WAITPID=1 -DHAVE_G"\
"ETNAMEINFO=1 -DHAVE_GETADDRINFO=1 -DHAVE_FREEADDRINFO=1 -DHAVE_GAI_STRERROR=1 -DHAVE_STRUCT_ADDRINFO=1 -DHAVE_STRUCT_IN6_ADDR=1 -DHAVE_STRUCT_SOCKAD"\
"DR_IN6=1 -DHAVE_STRUCT_SOCKADDR_STORAGE=1 -DHAVE_GETPWUID_R_5=1 -DHAVE_GETPWUID_R=1 -DHAVE_GETPWNAM_R_5=1 -DHAVE_GETPWNAM_R=1 -DHAVE_GETGRGID_R_5=1 "\
"-DHAVE_GETGRGID_R=1 -DHAVE_GETGRNAM_R_5=1 -DHAVE_GETGRNAM_R=1 -DHAVE_MTSAFE_GETHOSTBYNAME=1 -DHAVE_MTSAFE_GETHOSTBYADDR=1 -DHAVE_TERMIOS_H=1 -DHAVE_"\
"SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_MKTIME=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_V"\
"AR=1 -DHAVE_STRUCT_STAT_ST_BLOCKS=1 -DHAVE_STRUCT_STAT_ST_BLKSIZE=1 -DHAVE_BLKCNT_T=1 -DHAVE_INTPTR_T=1 -DHAVE_UINTPTR_T=1 -DHAVE_SIGNED_CHAR=1 -DHA"\
"VE_LANGINFO=1 -DHAVE_CHFLAGS=1 -DHAVE_MKSTEMPS=1 -DHAVE_GETATTRLIST=1 -DHAVE_COPYFILE_H=1 -DHAVE_COPYFILE=1 -DHAVE_LIBKERN_OSATOMIC_H=1 -DHAVE_OSSPI"\
"NLOCKLOCK=1 -DUSE_VFORK=1 -DTCL_DEFAULT_ENCODING=\\\"utf-8\\\" -DTCL_LOAD_FROM_MEMORY=1 -DTCL_WIDE_CLICKS=1 -DHAVE_AVAILABILITYMACROS_H=1 -DHAVE_WEAK_IM"\
"PORT=1 -D_DARWIN_C_SOURCE=1 -DHAVE_FTS=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_FILIO_H=1 -DTCL_UNLOAD_DLLS=1 -DUSE_DTRACE=1 -DHAVE_CPUID=1 -DTCL_FRAMEWORK"\
"=1 "
S["TCL_LIBS"]="${DL_LIBS} ${LIBS} ${MATH_LIBS}"
S["TCL_STUB_LIB_SPEC"]="-L/Library/Frameworks/Tcl.framework -ltclstub8.6"
S["TCL_STUB_LIB_FLAG"]="-ltclstub8.6"
S["TCL_STUB_LIB_FILE"]="libtclstub8.6.a"
S["TCL_LIB_SPEC"]="-F/Library/Frameworks -framework Tcl"
S["TCL_LIB_FLAG"]="-framework Tcl"
S["TCL_LIB_FILE"]="Tcl"
S["TCL_SRC_DIR"]="/Users/kevin/tcl-tk-fossil/tcl"
S["TCL_BIN_DIR"]="/Library/Frameworks/Tcl.framework"
S["TCL_VERSION"]="8.6"
S["PKG_CFLAGS"]=" -std=gnu99 "
S["PKG_LIBS"]=" -framework Cocoa -framework CoreFoundation -framework CoreServices"
S["PKG_INCLUDES"]=""
S["PKG_HEADERS"]=""
S["PKG_TCL_SOURCES"]=""
S["PKG_STUB_OBJECTS"]=""
S["PKG_STUB_SOURCES"]=""
S["PKG_STUB_LIB_FILE"]="liblauncherstub1.1.a"
S["PKG_LIB_FILE"]="liblauncher1.1.dylib"
S["EXEEXT"]=""
S["CYGPATH"]="echo"
S["target_alias"]=""
S["host_alias"]=""
S["build_alias"]=""
S["LIBS"]=""
S["ECHO_T"]=""
S["ECHO_N"]=""
S["ECHO_C"]="\\c"
S["DEFS"]="-DPACKAGE_NAME=\\\"launcher\\\" -DPACKAGE_TARNAME=\\\"launcher\\\" -DPACKAGE_VERSION=\\\"1.1\\\" -DPACKAGE_STRING=\\\"launcher\\ 1.1\\\" -DPACKAGE_BUGREPORT=\\\"\\\" -DP"\
"ACKAGE_URL=\\\"\\\" -DMAC_OSX_TK=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAV"\
"E_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DNO_VALUES_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D"\
"_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_THREADS=1 -DMODULE_SCOPE=extern\\ __attribute__\\(\\(__visibility__\\(\\\"hidden\\\"\\)\\)\\) -DTCL_WIDE_INT_IS_LONG=1 -DUS"\
"E_TCL_STUBS=1 -DUSE_TK_STUBS=1"
S["mandir"]="${datarootdir}/man"
S["localedir"]="${datarootdir}/locale"
S["libdir"]="/Library/Tcl"
S["psdir"]="${docdir}"
S["pdfdir"]="${docdir}"
S["dvidir"]="${docdir}"
S["htmldir"]="${docdir}"
................................................................................
S["sbindir"]="${exec_prefix}/sbin"
S["bindir"]="${exec_prefix}/bin"
S["program_transform_name"]="s,x,x,"
S["prefix"]="/usr/local"
S["exec_prefix"]="/usr/local"
S["PACKAGE_URL"]=""
S["PACKAGE_BUGREPORT"]=""
S["PACKAGE_STRING"]="launcher 1.1"
S["PACKAGE_VERSION"]="1.1"
S["PACKAGE_TARNAME"]="launcher"
S["PACKAGE_NAME"]="launcher"
S["PATH_SEPARATOR"]=":"
S["SHELL"]="/bin/sh"
_ACAWK
cat >>"$ac_tmp/subs1.awk" <<_ACAWK &&
  for (key in S) S_is_set[key] = 1

Changes to launcher/configure.

1
2
3
4
5
6
7
8
9
10
...
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
....
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
....
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
....
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
....
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
....
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
....
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
....
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69 for launcher 1.0.
#
#
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
#
#
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
................................................................................
subdirs=
MFLAGS=
MAKEFLAGS=

# Identity of this package.
PACKAGE_NAME='launcher'
PACKAGE_TARNAME='launcher'
PACKAGE_VERSION='1.0'
PACKAGE_STRING='launcher 1.0'
PACKAGE_BUGREPORT=''
PACKAGE_URL=''

# Factoring default headers for most tests.
ac_includes_default="\
#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
................................................................................
#
# Report the --help message.
#
if test "$ac_init_help" = "long"; then
  # Omit some internal or obsolete options to make the list less imposing.
  # This message is too long to be a string in the A/UX 3.1 sh.
  cat <<_ACEOF
\`configure' configures launcher 1.0 to adapt to many kinds of systems.

Usage: $0 [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.
................................................................................
  --x-includes=DIR    X include files are in DIR
  --x-libraries=DIR   X library files are in DIR
_ACEOF
fi

if test -n "$ac_init_help"; then
  case $ac_init_help in
     short | recursive ) echo "Configuration of launcher 1.0:";;
   esac
  cat <<\_ACEOF

Optional Features:
  --disable-option-checking  ignore unrecognized --enable/--with options
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
................................................................................
    cd "$ac_pwd" || { ac_status=$?; break; }
  done
fi

test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
  cat <<\_ACEOF
launcher configure 1.0
generated by GNU Autoconf 2.69

Copyright (C) 2012 Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
_ACEOF
  exit
................................................................................
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_header_mongrel
cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by launcher $as_me 1.0, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ $0 $@

_ACEOF
exec 5>>config.log
{
................................................................................
	    i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'`
	fi
	PKG_LIBS="$PKG_LIBS $i"
    done



    PKG_CFLAGS="$PKG_CFLAGS -std=gnu99 -fobjc-gc"



    vars=""
    for i in $vars; do
	# check for existence - allows for generic/win/unix VPATH
	if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
................................................................................
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# Save the log message, to keep $0 and so on meaningful, and to
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by launcher $as_me 1.0, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  CONFIG_FILES    = $CONFIG_FILES
  CONFIG_HEADERS  = $CONFIG_HEADERS
  CONFIG_LINKS    = $CONFIG_LINKS
  CONFIG_COMMANDS = $CONFIG_COMMANDS
  $ $0 $@
................................................................................

Report bugs to the package provider."

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
launcher config.status 1.0
configured by $0, generated by GNU Autoconf 2.69,
  with options \\"\$ac_cs_config\\"

Copyright (C) 2012 Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."



|







 







|
|







 







|







 







|







 







|







 







|







 







|







 







|







 







|







1
2
3
4
5
6
7
8
9
10
...
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
....
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
....
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
....
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
....
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
....
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
....
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
....
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69 for launcher 1.1.
#
#
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
#
#
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
................................................................................
subdirs=
MFLAGS=
MAKEFLAGS=

# Identity of this package.
PACKAGE_NAME='launcher'
PACKAGE_TARNAME='launcher'
PACKAGE_VERSION='1.1'
PACKAGE_STRING='launcher 1.1'
PACKAGE_BUGREPORT=''
PACKAGE_URL=''

# Factoring default headers for most tests.
ac_includes_default="\
#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
................................................................................
#
# Report the --help message.
#
if test "$ac_init_help" = "long"; then
  # Omit some internal or obsolete options to make the list less imposing.
  # This message is too long to be a string in the A/UX 3.1 sh.
  cat <<_ACEOF
\`configure' configures launcher 1.1 to adapt to many kinds of systems.

Usage: $0 [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.
................................................................................
  --x-includes=DIR    X include files are in DIR
  --x-libraries=DIR   X library files are in DIR
_ACEOF
fi

if test -n "$ac_init_help"; then
  case $ac_init_help in
     short | recursive ) echo "Configuration of launcher 1.1:";;
   esac
  cat <<\_ACEOF

Optional Features:
  --disable-option-checking  ignore unrecognized --enable/--with options
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
................................................................................
    cd "$ac_pwd" || { ac_status=$?; break; }
  done
fi

test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
  cat <<\_ACEOF
launcher configure 1.1
generated by GNU Autoconf 2.69

Copyright (C) 2012 Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
_ACEOF
  exit
................................................................................
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_header_mongrel
cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by launcher $as_me 1.1, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ $0 $@

_ACEOF
exec 5>>config.log
{
................................................................................
	    i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'`
	fi
	PKG_LIBS="$PKG_LIBS $i"
    done



    PKG_CFLAGS="$PKG_CFLAGS -std=gnu99 "



    vars=""
    for i in $vars; do
	# check for existence - allows for generic/win/unix VPATH
	if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
................................................................................
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# Save the log message, to keep $0 and so on meaningful, and to
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by launcher $as_me 1.1, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  CONFIG_FILES    = $CONFIG_FILES
  CONFIG_HEADERS  = $CONFIG_HEADERS
  CONFIG_LINKS    = $CONFIG_LINKS
  CONFIG_COMMANDS = $CONFIG_COMMANDS
  $ $0 $@
................................................................................

Report bugs to the package provider."

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
launcher config.status 1.1
configured by $0, generated by GNU Autoconf 2.69,
  with options \\"\$ac_cs_config\\"

Copyright (C) 2012 Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."

Changes to launcher/configure.in.

10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
..
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# Set your package name and version numbers here.
#
# This initializes the environment with PACKAGE_NAME and PACKAGE_VERSION
# set as provided.  These will also be added as -D defs in your Makefile
# so you can encode the package version directly into the source files.
#-----------------------------------------------------------------------

AC_INIT([customfont], [1.0])

if test "`uname -s`" != "Darwin" -o \
	"`uname -r | awk -F. '{print [$]1}'`" -lt 9; then
    AC_MSG_ERROR([Mac OS X 10.5 or later required!])
fi

#--------------------------------------------------------------------
................................................................................
# public headers that need to be installed in TEA_ADD_HEADERS,
# stub library C source files to compile in TEA_ADD_STUB_SOURCES,
# and runtime Tcl library files in TEA_ADD_TCL_SOURCES.
# This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS
# and PKG_TCL_SOURCES.
#-----------------------------------------------------------------------

TEA_ADD_SOURCES([macosx/customfont.c])
TEA_ADD_HEADERS([])
TEA_ADD_INCLUDES([])
TEA_ADD_LIBS([-framework Cocoa -framework CoreFoundation -framework CoreServices])
TEA_ADD_CFLAGS([-std=gnu99 -fobjc-gc])
TEA_ADD_STUB_SOURCES([])

#--------------------------------------------------------------------
# __CHANGE__
# A few miscellaneous platform-specific items:
#
# Define a special symbol for Windows (BUILD_tkWebView in this case) so







|







 







|



|







10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
..
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# Set your package name and version numbers here.
#
# This initializes the environment with PACKAGE_NAME and PACKAGE_VERSION
# set as provided.  These will also be added as -D defs in your Makefile
# so you can encode the package version directly into the source files.
#-----------------------------------------------------------------------

AC_INIT([launcher], [1.1])

if test "`uname -s`" != "Darwin" -o \
	"`uname -r | awk -F. '{print [$]1}'`" -lt 9; then
    AC_MSG_ERROR([Mac OS X 10.5 or later required!])
fi

#--------------------------------------------------------------------
................................................................................
# public headers that need to be installed in TEA_ADD_HEADERS,
# stub library C source files to compile in TEA_ADD_STUB_SOURCES,
# and runtime Tcl library files in TEA_ADD_TCL_SOURCES.
# This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS
# and PKG_TCL_SOURCES.
#-----------------------------------------------------------------------

TEA_ADD_SOURCES([macosx/launcher.c])
TEA_ADD_HEADERS([])
TEA_ADD_INCLUDES([])
TEA_ADD_LIBS([-framework Cocoa -framework CoreFoundation -framework CoreServices])
TEA_ADD_CFLAGS([-std=gnu99 ])
TEA_ADD_STUB_SOURCES([])

#--------------------------------------------------------------------
# __CHANGE__
# A few miscellaneous platform-specific items:
#
# Define a special symbol for Windows (BUILD_tkWebView in this case) so

Changes to launcher/macosx/launcher.c.

1
2
3
4
5
6
7
8
9
10
11
12

13
14
15
16

17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59

60
























































61
62

63
64
































65
66
67

68
69
70
71
72
73
74
..
77
78
79
80
81
82
83



84
85
86
87
88
89
90
91
92
93
/*
 * launcher.c --
 * Launches URL's using native API's on OS X without shelling out to "/usr/bin/open". 
 * Copyright (c) 2013 Kevin Walzer/WordTech Communications LLC.
 *
 * See the file "license.terms" for information on usage and redistribution of
 * this file, and for a DISCLAIMER OF ALL WARRANTIES.
 *
 */

#include <tcl.h>
#include <tk.h>

#include <CoreFoundation/CoreFoundation.h>
#include <CoreServices/CoreServices.h>
#include <Carbon/Carbon.h>
#include <ApplicationServices/ApplicationServices.h>



/*Tcl function to launch URL with default app.*/
int LaunchURL(ClientData cd, Tcl_Interp *ip, int objc, Tcl_Obj *CONST objv[]) {

  if(objc != 2) {
    Tcl_WrongNumArgs(ip, 1, objv, "url");
    return TCL_ERROR;
  }


  //get url string, convert to CFURL
  CFStringRef url = CFStringCreateWithCString(NULL, Tcl_GetString(objv[1]),
						       kCFStringEncodingUTF8);
  CFURLRef launchurl = CFURLCreateWithString(kCFAllocatorDefault, url, NULL);
  CFRelease(url);

  //fire URL in default app
  LSOpenCFURLRef(launchurl, NULL);

  CFRelease(launchurl);

  return TCL_OK;

}

/*Tcl function to launch file with default app.*/
int LaunchFile(ClientData cd, Tcl_Interp *ip, int objc, Tcl_Obj *CONST objv[]) {

  if(objc != 2) {
    Tcl_WrongNumArgs(ip, 1, objv, "file path");
    return TCL_ERROR;
  }

  //get url string, convert to CFURL
  CFStringRef url = CFStringCreateWithCString(NULL, Tcl_GetString(objv[1]),
						       kCFStringEncodingUTF8);
  CFRelease(url);

  CFURLRef launchurl = CFURLCreateWithFileSystemPath(kCFAllocatorDefault, url, kCFURLPOSIXPathStyle, false);

  //fire URL in default app
  LSOpenCFURLRef(launchurl, NULL);


























































  CFRelease(launchurl);




































  return TCL_OK;

}


/*Initalize the package in the tcl interpreter, create Tcl commands. */
int Launcher_Init (Tcl_Interp *interp) {

 
  if (Tcl_InitStubs(interp, "8.5", 0) == NULL) {
    return TCL_ERROR;  
................................................................................
    return TCL_ERROR;
  }


  Tcl_CreateObjCommand(interp, "::launcher::launchurl", LaunchURL,(ClientData)NULL, (Tcl_CmdDeleteProc *)NULL);

  Tcl_CreateObjCommand(interp, "::launcher::launchfile", LaunchFile,(ClientData)NULL, (Tcl_CmdDeleteProc *)NULL);





  if (Tcl_PkgProvide(interp, "launcher", "1.0") != TCL_OK) {
    return TCL_ERROR;
  }
      
  return TCL_OK;
	
}



|
|








>




>











|
|
|



|












|



|
|
|




|
|
>
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
|
>
|
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
|
|
>







 







>
>
>
|
|
|







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
...
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
/*
 * launcher.c --
 * Launches URL's using native API's on OS X without shelling out to "/usr/bin/open". Also gets and sets default app handlers.
 * Copyright (c) 2015 Kevin Walzer/WordTech Communications LLC.
 *
 * See the file "license.terms" for information on usage and redistribution of
 * this file, and for a DISCLAIMER OF ALL WARRANTIES.
 *
 */

#include <tcl.h>
#include <tk.h>
#undef panic
#include <CoreFoundation/CoreFoundation.h>
#include <CoreServices/CoreServices.h>
#include <Carbon/Carbon.h>
#include <ApplicationServices/ApplicationServices.h>
#define panic Tcl_Panic


/*Tcl function to launch URL with default app.*/
int LaunchURL(ClientData cd, Tcl_Interp *ip, int objc, Tcl_Obj *CONST objv[]) {

  if(objc != 2) {
    Tcl_WrongNumArgs(ip, 1, objv, "url");
    return TCL_ERROR;
  }


  /* Get url string, convert to CFURL. */
  CFStringRef url = CFStringCreateWithCString(NULL, Tcl_GetString(objv[1]),
					      kCFStringEncodingUTF8);
  CFURLRef launchurl = CFURLCreateWithString(kCFAllocatorDefault, url, NULL);
  CFRelease(url);

  /* Fire url in default app. */
  LSOpenCFURLRef(launchurl, NULL);

  CFRelease(launchurl);

  return TCL_OK;

}

/*Tcl function to launch file with default app.*/
int LaunchFile(ClientData cd, Tcl_Interp *ip, int objc, Tcl_Obj *CONST objv[]) {

  if(objc != 2) {
    Tcl_WrongNumArgs(ip, 1, objv, "file");
    return TCL_ERROR;
  }

  /* Get url string, convert to CFURL. */
  CFStringRef url = CFStringCreateWithCString(NULL, Tcl_GetString(objv[1]),
					      kCFStringEncodingUTF8);
  CFRelease(url);

  CFURLRef launchurl = CFURLCreateWithFileSystemPath(kCFAllocatorDefault, url, kCFURLPOSIXPathStyle, false);

  /* Fire url in default app. */
  LSOpenCFURLRef(launchurl, NULL);
  CFRelease(launchurl);

  return TCL_OK;

}


/*Tcl function to get path to app bundle.*/
int GetAppPath(ClientData cd, Tcl_Interp *ip, int objc, Tcl_Obj *CONST objv[]) {

  CFURLRef mainBundleURL = CFBundleCopyBundleURL(CFBundleGetMainBundle());

  
  /* Convert the URL reference into a string reference. */
  CFStringRef appPath = CFURLCopyFileSystemPath(mainBundleURL, kCFURLPOSIXPathStyle);
 
  /* Get the system encoding method. */
  CFStringEncoding encodingMethod = CFStringGetSystemEncoding();
 
  /* Convert the string reference into a C string. */
  char *path = CFStringGetCStringPtr(appPath, encodingMethod);

  Tcl_SetResult(ip, path, NULL);

  CFRelease(mainBundleURL);
  CFRelease(appPath);
  return TCL_OK;

}

/*Tcl function to launch file with default app.*/
int GetDefaultApp(ClientData cd, Tcl_Interp *ip, int objc, Tcl_Obj *CONST objv[]) {

  if(objc != 2) {
    Tcl_WrongNumArgs(ip, 1, objv, "url");
    return TCL_ERROR;
  }

  /* Get url string, convert to CFStringRef. */
  CFStringRef url = CFStringCreateWithCString(NULL, Tcl_GetString(objv[1]),
					      kCFStringEncodingUTF8);

  CFStringRef defaultApp;
  defaultApp =  LSCopyDefaultHandlerForURLScheme(url);

  /* Convert the URL reference into a string reference. */
  CFStringRef appPath = CFURLCopyFileSystemPath(defaultApp, kCFURLPOSIXPathStyle);
 
  /* Get the system encoding method. */
  CFStringEncoding encodingMethod = CFStringGetSystemEncoding();
 
  /* Convert the string reference into a C string. */
  char *path = CFStringGetCStringPtr(appPath, encodingMethod);

  Tcl_SetResult(ip, path, NULL);

  CFRelease(defaultApp);
  CFRelease(appPath);
    CFRelease(url);

  return TCL_OK;

}

/*Tcl function to set default app for URL.*/
int SetDefaultApp(ClientData cd, Tcl_Interp *ip, int objc, Tcl_Obj *CONST objv[]) {

  if(objc != 3) {
    Tcl_WrongNumArgs(ip, 1, objv, "url path");
    return TCL_ERROR;
  }
  
  /* Get url and path strings, convert to CFStringRef. */
  CFStringRef url = CFStringCreateWithCString(NULL, Tcl_GetString(objv[1]),
					      kCFStringEncodingUTF8);
  CFURLRef appURL = NULL;
  CFBundleRef bundle = NULL;

  CFStringRef apppath = CFStringCreateWithCString(NULL, Tcl_GetString(objv[2]),  kCFStringEncodingUTF8);

  /* Convert filepath to URL, create bundle object, get bundle ID. */
  appURL = CFURLCreateWithFileSystemPath(kCFAllocatorDefault, apppath, kCFURLPOSIXPathStyle, false);
  bundle = CFBundleCreate(NULL, appURL);

  CFStringRef bundleID = CFBundleGetIdentifier(bundle); 

  /* Finally, set default app. */
  OSStatus err;
  err= LSSetDefaultHandlerForURLScheme(url, bundleID);

  /* Free memory.  */
  CFRelease(url);
  CFRelease(apppath);
  CFRelease(bundleID);

  return TCL_OK;

}


/*Initalize the package in the tcl interpreter, create Tcl commands. */
int Launcher_Init (Tcl_Interp *interp) {

 
  if (Tcl_InitStubs(interp, "8.5", 0) == NULL) {
    return TCL_ERROR;  
................................................................................
    return TCL_ERROR;
  }


  Tcl_CreateObjCommand(interp, "::launcher::launchurl", LaunchURL,(ClientData)NULL, (Tcl_CmdDeleteProc *)NULL);

  Tcl_CreateObjCommand(interp, "::launcher::launchfile", LaunchFile,(ClientData)NULL, (Tcl_CmdDeleteProc *)NULL);
  Tcl_CreateObjCommand(interp, "::launcher::getapppath", GetAppPath,(ClientData)NULL, (Tcl_CmdDeleteProc *)NULL);
  Tcl_CreateObjCommand(interp, "::launcher::getdefaultapp", GetDefaultApp,(ClientData)NULL, (Tcl_CmdDeleteProc *)NULL);
  Tcl_CreateObjCommand(interp, "::launcher::setdefaultapp",SetDefaultApp,(ClientData)NULL, (Tcl_CmdDeleteProc *)NULL);


  if (Tcl_PkgProvide(interp, "launcher", "1.1") != TCL_OK) {
    return TCL_ERROR;
  }
      
  return TCL_OK;
	
}

Changes to launcher/pkgIndex.tcl.

1
2
3
4
5
6
7
#
# Tcl package index file
#
package ifneeded launcher 1.0 "
    package require Tk 8.5-
    if {\"AppKit\" ni \[winfo server .\]} {error {TkAqua Cocoa required}}
        load [list ][file join $dir liblauncher1.0.dylib] launcher"



|


|
1
2
3
4
5
6
7
#
# Tcl package index file
#
package ifneeded launcher 1.1 "
    package require Tk 8.5-
    if {\"AppKit\" ni \[winfo server .\]} {error {TkAqua Cocoa required}}
        load [list [file join $dir liblauncher1.1.dylib]] launcher"