aMule 2.1.3 also require a unicode wxWidgets
At least on my box, the configure script did not notify me of that fact.
I'll try to build aMule and wxWidgets with gcc. But I think it would be generally a good idea if you could fix the configure script so it does not add gcc specific flags unless the compiler is gcc. Things like -c, -g, -O, -E, -I, and a few more are safe on any platfrom I know.
FWIW, here are the flags Sun's compiler accepts. It might give you some ideas of what ones the current script uses which are not universally used.
bash-3.00$ cc -flags
-# Verbose mode
-### Show compiler commands built by driver, no compilation
-A<name[(tokens)]> Preprocessor predicate assertion
-B<[static|dynamic]> Specify dynamic or static binding
-C Prevent preprocessor from removing comments
-c Compile only - produce .o files, suppress linking
-D<name[=token]> Associate name with token as if by #define
-d[y|n] dynamic [-dy] or static [-dn] option to linker
-E Compile source through preprocessor only, output to stdout
-erroff=<t> Suppress warnings specified by tags t(%none, %all, <tag list>)
-errshort[=<a>] Control amount of type details in error messages, <a>={short|full|tags}
-errtags=<a> Display messages with tags a(no, yes)
-errwarn=<t> Treats warnings specified by tags t(%none, %all, <tag list>) as errors
-fast Optimize using a selection of options
-fd Report old-style function definitions and declarations
-features=<v> Enable/disable C language features, <v>= {[no%]extinl|[no%]typeof|[no%]extensions}
-flags Show this summary of compiler options
-flteval[=<a>] Evaluation of floating point expressions, a={2|any}
-fnonstd Initialize floating-point hardware to non-standard preferences
-fns[=<yes|no>] Select non-standard floating point mode
-fprecision=<p> Set FP rounding precision mode p(single, double, extended)
-fround=<r> Select the IEEE rounding mode in effect at startup
-fsimple[=<n>] Select floating-point optimization preferences <n>
-fsingle Use single-precision arithmetic (-Xt and -Xs modes only)
-ftrap=<t> Select floating-point trapping mode in effect at startup
-fstore force floating pt. values to target precision on assignment
-G Build a dynamic shared library
-g Compile for debugging
-H Print path name of each file included during compilation
-h <name> Assign <name> to generated dynamic shared library
-I<dir> Add <dir> to preprocessor #include file search path
-i Passed to linker to ignore any LD_LIBRARY_PATH setting
-keeptmp Keep temporary files created during compilation
-KPIC Compile position independent code with 32-bit addresses
-Kpic Compile position independent code
-L<dir> Pass to linker to add <dir> to the library search path
-l<name> Link with library lib<name>.a or lib<name>.so
-m32 set 32-bit addressing model
-m64 set 64-bit addressing model
-mc Remove duplicate strings from .comment section of output files
-mr Remove all strings from .comment section of output files
-mr,"string" Remove all strings and append "string" to .comment section
-mt Specify options needed when compiling multi-threaded code
-native Optimize for the host system (-xtarget=native)
-nofstore Do not force floating pt. values to target precision on assignment
-O Use default optimization level (-xO3)
-O<n> Same as -xO<n>
-o <outputfile> Set name of output file to <outputfile>
-P Compile source through preprocessor only, output to .i file
-p Compile for profiling with prof
-Q[y|n] Emit/don't emit identification info to output file
-qp Compile for profiling with prof
-R<dir[:dir]> Build runtime search path list into executable
-S Compile and only generate assembly code (.s)
-s Strip symbol table from the executable file
-U<name> Delete initial definition of preprocessor symbol <name>
-V Report version number of each compilation phase
-v Do stricter semantic checking
-W<c>,<arg> Pass <arg> to specified component <c> (a,l,m,p,0,h,i,u)
-w Suppress compiler warning messages
-Xa Compile assuming ANSI C conformance, allow K & R extensions (default mode)
-Xc Compile assuming strict ANSI C conformance
-Xs Compile assuming (pre-ANSI) K & R C style code
-Xt Compile assuming K & R conformance, allow ANSI C
-xalias_level=<a> Enable optimizations based on the specified alias_level
-xarch=<a> Specify target architecture instruction set
-xautopar Enable automatic loop parallelization
-xbuiltin[=<b>] When profitable inline, or substitute intrinsic functions for system functions, b={%all,%none}
-xc99[=<a>] Enable ISO C99 features, <a>={all,none,[no_]lib}
-xcache=<c> Define cache properties for use by optimizer
-xCC Accept C++ style comments
-xchar=<v> Treat type char as signed (<v> = s or signed) or unsigned (<v> = u or unsigned).
-xchar_byte_order=<o> Specify multi-char byte order <o> (default, high, low)
-xchip=<c> Specify the target processor for use by the optimizer
-xcrossfile[=<n>] Enable optimization and inlining across source files, n={0|1}
-xcsi Allow C source code using non-ISO C compliant locales
-xdebugformat=<a> Selects the format of debugging information; <a>={dwarf|stabs}
-xdepend[=<yes|no>] Analyze loops for data dependencies
-xdryrun The same as -###
-xe Perform only syntax/semantic checking, no code generation
-xF=<a>[,<a>] Compile for later mapfile reordering and data fragmentation, <a>={[no%]func|[no%]gbldata|%all|%none}
-xhelp=<f> Display on-line help information f(flags, readme)
-xinline=[<a>,...,<a>] Attempt inlining of specified user routines, <a>={%auto,func,no%func}
-xipo[=<n>] Enable optimization and inlining across source files, n={0|1|2}
-xipo_archive=<a> Enable crossfile optimization including archive files, <a>={none|readonly|writeback}
-xinstrument=<a> Enable/disable instrumentation for race detection tool, <a>=[no%]datarace
-xjobs=<n> Maximum number of components compiler will fork in parallel
-xldscope=<a> Indicates the appropriate linker scoping within the source program; <a>={global|symbolic|hidden}
-xlibmieee Force IEEE 754 return values for math routines in exceptional cases
-xlibmil Inline selected libm math routines for optimization
-xlibmopt Link with optimized math library
-xlic_lib=sunperf Link in the Sun supplied performance libraries
-xloopinfo Show loops that parallelized
-xM Generate makefile dependencies
-xM1 Generate makefile dependencies, but exclude /usr/include
-xmaxopt=[off,1,2,3,4,5] maximum optimization level allowed on #pragma opt
-xMerge Merge data segment into text segment
-xmodel=<a> Specify memory model for 64-bit programs, a={small|kernel|medium|large}
-xnolib Do not link with default system libraries
-xnolibmil Cancel -xlibmil on command line
-xnolibmopt Cancel -xlibmopt on command line
-xnorunpath Do not build a runtime search path into the executable
-xO<n> Generate optimized code (n={1|2|3|4|5})
-xopenmp=<a> Enable OpenMP language extension <a>={noopt|parallel|none}
-xP Print prototypes for function definitions
-xpagesize_heap=<a> Controls the preferred page size for the heap, a={4K|2M|4M|default}
-xpagesize_stack=<a> Controls the preferred page size for the stack, a={4K|2M|4M|default}
-xpagesize=<a> Controls the preferred page size for the stack and for the heap, a={4K|2M|4M|default}
-xparallel Perform parallel compilation
-xpch=<p> Enable precompiled headers. Collect data for, or use existing, PCH file <p>={auto|autofirst|{collect,use}:<file>[.cpch]}
-xpchstop=<file> Specified include file marks end of initial common sequence of pre-processing directives for precompiled headers.
-xpentium Generate code for the pentium processor
-xpg Compile for profiling with gprof
-xprefetch[=<p>] Specify instruction prefetch p (auto,no%auto,explicit,no%explicit)
-xprefetch_auto_type=<a> Specify automatic indirect prefetch insertion for loops; <a>=[no%]indirect_array_access
-xprefetch_level[=<n>] Controls the aggressiveness of the -xprefetch=auto option (n={1|2|3})
-xprofile=<p> Collect data for a profile or use a profile to optimize <p>={{collect,use}[:<path>],tcov}
-xreduction Recognize reduction operations in parallelized loops
-xregs=<r> Specify the usage of optional registers
-xrestrict[=<f>] Treat pointer valued function parameters as restricted f(%none,%all,<function-name list>)
-xs Allow debugging without object (.o) files
-xsb Compile for use with the WorkShop source browser
-xsbfast Generate only WorkShop source browser information, no compilation
-xsfpconst Represent unsuffixed floating point constants as single precision
-xspace Do not do optimizations that increase code size
-xstrconst Place string literals into read-only data segment
-xtarget=<t> Specify target system for optimization
-xtemp=<dir> Set directory for temporary files to <dir>
-xthreadvar=<a>[,<a>] Control code generation for thread variables <a>={[no%]dynamic|[no%]stack|%all|%none}
-xtime Report the execution time for each compilation phase
-xtransition Emit warnings for differences between K&R C and ANSI C
-xtrigraphs[=<yes|no>] Enable|disable trigraph translation
-xunroll=n Enable unrolling loops n times where possible
-xustr=<a> Recognize sixteen-bit string literals <a>={no|ascii_utf16_ushort}
-xvector[={[no%]lib,[no%]simd | %none}] automatic generation of calls to the vector library functions and/or the generation of the SIMD instructions.
-xvpara Verbose parallelization warnings
-Y<c>,<dir> Specify <dir> for location of component <c> (a,l,m,p,0,h,i,u)
-YA,<dir> Change default directory searched for components
-YI,<dir> Change default directory searched for include files
-YP,<dir> Change default directory for finding libraries files
-YS,<dir> Change default directory for startup object files
-Zll Create lock_lint database files (.ll)
For additional product information or for the name of a Sun software
reseller, please call 1-800-786-7638, or (+1) 512-434-1511 (outside the US),
or fax your request to (+1) 512-218-3866.
For technical support, please contact your Sun software reseller for the
name of an Authorized Service Provider.
For more information, please browse
http://docs.sun.comTo access the complete documentation set, go to the documentation index at file:/opt/SUNWspro/docs/index.html