106 |
char *buffer; |
char *buffer; |
107 |
buffer = ASC_NEW_ARRAY(char,PATH_MAX); |
buffer = ASC_NEW_ARRAY(char,PATH_MAX); |
108 |
|
|
109 |
#if defined(ASC_SHLIBSUFFIX) && defined(ASC_SHLIBPREFIX) |
#if defined(ASC_EXTLIBSUFFIX) && defined(ASC_EXTLIBPREFIX) |
110 |
/* |
/* |
111 |
this is the preferred operation: SCons reports what the local system |
this is the preferred operation: SCons reports what the local system |
112 |
uses as its shared library file extension. |
uses as its shared library file extension. |
113 |
*/ |
*/ |
114 |
snprintf(buffer,PATH_MAX,"%s%s%s",ASC_SHLIBPREFIX,partialname,ASC_SHLIBSUFFIX); |
snprintf(buffer,PATH_MAX,"%s%s%s",ASC_EXTLIBPREFIX,partialname,ASC_EXTLIBSUFFIX); |
115 |
#else |
#else |
116 |
#ifdef __GNUC__ |
#ifdef __GNUC__ |
117 |
# warning "You should be using Use ASC_SHLIBPREFIX and ASC_SHLIBSUFFIX!" |
# warning "You should be using Use ASC_EXTLIBPREFIX and ASC_EXTLIBSUFFIX!" |
118 |
#endif |
#endif |
119 |
/** |
/** |
120 |
@DEPRECATED |
@DEPRECATED |
121 |
|
|
122 |
If we don't have ASC_SHLIB-SUFFIX and -PREFIX then we can do some |
If we don't have ASC_EXTLIB-SUFFIX and -PREFIX then we can do some |
123 |
system-specific stuff here, but it's not as general. |
system-specific stuff here, but it's not as general. |
124 |
*/ |
*/ |
125 |
# ifdef __WIN32__ |
# ifdef __WIN32__ |
133 |
# elif defined(_SGI_SOURCE) |
# elif defined(_SGI_SOURCE) |
134 |
snprintf(buffer,PATH_MAX,"%s.so",partialname); |
snprintf(buffer,PATH_MAX,"%s.so",partialname); |
135 |
# else |
# else |
136 |
# error "Unknown system type (please define ASC_SHLIBSUFFIX and ASC_SHLIBPREFIX)" |
# error "Unknown system type (please define ASC_EXTLIBSUFFIX and ASC_EXTLIBPREFIX)" |
137 |
# endif |
# endif |
138 |
#endif |
#endif |
139 |
|
|