?RCS: Copyright (c) 2005-2007 H.Merijn Brand ?RCS: ?RCS: You may distribute under the terms of either the GNU General Public ?RCS: License or the Artistic License, as specified in the README file. ?RCS: ?MAKE:d_cplusplus: Compile Setvar run cat rm_try ?MAKE: -pick add $@ %< ?S:d_cplusplus (d_cplusplus.U): ?S: This variable conditionally defines the USE_CPLUSPLUS symbol, which ?S: indicates that a C++ compiler was used to compiled Perl and will be ?S: used to compile extensions. ?S:. ?C:USE_CPLUSPLUS: ?C: This symbol, if defined, indicates that a C++ compiler was ?C: used to compiled Perl and will be used to compile extensions. ?C:. ?H:#$d_cplusplus USE_CPLUSPLUS /**/ ?H:. ?F:!try ?LINT:set d_cplusplus : Check if we are using C++ echo " " echo "Checking for C++..." >&4 $cat >try.c <<'EOCP' #include int main(void) { #ifdef __cplusplus return 0; #else return 1; #endif } EOCP set try if eval $compile_ok && $run ./try; then val="$define" echo "You are using a C++ compiler." else val="$undef" echo "You are not using a C++ compiler." fi $rm_try cplusplus$$ set d_cplusplus eval $setvar