Adjust to new (and now docomented) naming convention for bison outputs.
[shapes.git] / source / version.cc
blob6b7d7c99e73062e0081122eff3a568875e8915d0
1 /* This file is part of Shapes.
3 * Shapes is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 3 of the License, or
6 * any later version.
8 * Shapes is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with Shapes. If not, see <http://www.gnu.org/licenses/>.
16 * Copyright 2008, 2010 Henrik Tidefelt
19 #include "config.h"
20 #include "consts.h"
22 #include <stdio.h>
24 using namespace Shapes;
26 // This file uses the c functions to make it compile as fast as
27 // possible, so that this solution will never be considered a waste of
28 // time.
30 void
31 printVersion( )
33 printf( "Version: " VERSION_NUMBER "\n" );
34 printf( "Build date: " VERSION_DATE "\n" );
35 printf( "Options: " );
36 #ifdef HAVE_LIBPNG
37 printf( " %s", Interaction::BUILD_REQ_LIBJPEG );
38 #endif
39 #ifdef HAVE_LIBJPEG
40 printf( " %s", Interaction::BUILD_REQ_LIBPNG );
41 #endif
42 #ifdef HAVE_FT2
43 printf( " %s", Interaction::BUILD_REQ_FREETYPE );
44 #endif
45 #ifdef HAVE_FONTCONFIG
46 printf( " %s", Interaction::BUILD_REQ_FONTCONFIG );
47 #endif
48 printf( "\n" );