[go: up one dir, main page]

File: configure.in

package info (click to toggle)
kst 1.3.1-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 33,264 kB
  • ctags: 15,780
  • sloc: cpp: 128,844; sh: 13,478; ansic: 11,881; perl: 3,036; xml: 1,559; makefile: 1,510; yacc: 181; lex: 141
file content (611 lines) | stat: -rw-r--r-- 23,591 bytes parent folder | download
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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
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
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
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
dnl =======================================================
dnl FILE: ./admin/configure.in.min
dnl =======================================================

dnl    This file is part of the KDE libraries/packages
dnl    Copyright (C) 2001 Stephan Kulow (coolo@kde.org)
 
dnl    This file is free software; you can redistribute it and/or
dnl    modify it under the terms of the GNU Library General Public
dnl    License as published by the Free Software Foundation; either
dnl    version 2 of the License, or (at your option) any later version.
 
dnl    This library is distributed in the hope that it will be useful,
dnl    but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
dnl    Library General Public License for more details.
 
dnl    You should have received a copy of the GNU Library General Public License
dnl    along with this library; see the file COPYING.LIB.  If not, write to
dnl    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
dnl    Boston, MA 02110-1301, USA.

# Original Author was Kalle@kde.org
# I lifted it in some mater. (Stephan Kulow)
# I used much code from Janos Farkas

dnl Process this file with autoconf to produce a configure script.

AC_INIT(acinclude.m4) dnl a source file from your sub dir

dnl This is so we can use kde-common
AC_CONFIG_AUX_DIR(admin)

dnl This ksh/zsh feature conflicts with `cd blah ; pwd`
unset CDPATH

dnl Checking host/target/build systems, for make, install etc.
AC_CANONICAL_SYSTEM 
dnl Perform program name transformation
AC_ARG_PROGRAM

dnl Automake doc recommends to do this only here. (Janos)
AM_INIT_AUTOMAKE(kst-1.3.1, "3.5.5") dnl searches for some needed programs

KDE_SET_PREFIX

dnl generate the config header
AM_CONFIG_HEADER(config.h) dnl at the distribution this done

dnl Checks for programs.
AC_CHECK_COMPILERS
AC_ENABLE_SHARED(yes)
AC_ENABLE_STATIC(no)
KDE_PROG_LIBTOOL

dnl for NLS support. Call them in this order!
dnl WITH_NLS is for the po files
AM_KDE_WITH_NLS

KDE_USE_QT(3.1)
AC_PATH_KDE
dnl =======================================================
dnl FILE: configure.in.in
dnl =======================================================

#MIN_CONFIG(3.1)
CXXFLAGS="$CXXFLAGS $KDE_DEFAULT_CXXFLAGS"

if test "$build_arts" = "yes"; then
    AC_DEFINE(USE_ARTS, 1, [If we use arts volume])
    LIB_ARTS="-lartskde"
    AC_SUBST(LIB_ARTS)
fi

KDE_INIT_DOXYGEN([KEG Graphics API Reference], [Version $VERSION])

dnl =======================================================
dnl FILE: ./kst/configure.in.in
dnl =======================================================

# C linkage is default
AC_C_BIGENDIAN
AC_PROG_YACC
AM_PROG_LEX
dnl AC_OUTPUT(kst/kst.spec kst/kst.lsm)

AC_CHECK_UNSETENV

AC_HEADER_TIME
AC_CHECK_HEADERS(sys/time.h)

KST_VERSION="1.3.1"
KST_LIBKST_VERSION=1:3:0

AC_SUBST([KST_VERSION])
AC_SUBST([KST_LIBKST_VERSION])
AC_DEFINE_UNQUOTED([KSTVERSION], ["${KST_VERSION}"], [Define to the KST version number])

# PIOLIB Test
ac_piolib_includes=""
ac_piolib_libraries=""
AC_ARG_WITH(piolib,
    AC_HELP_STRING([--with-piolib=DIR],[where the root of PIOLib is installed ]),
    [  ac_piolib_includes="-I$withval"
       ac_piolib_libraries="-L$withval"
    ])

all_includes_save="$all_includes"
all_includes="$all_includes $ac_piolib_includes"
KDE_CHECK_HEADER(HL2_PIOLIB/PIOLib.h, AC_DEFINE(HAVE_PIOLIB_H, 1, [If we have piolib headers]) have_piolib_h=yes PIOINCLUDES="$ac_piolib_includes", , )
all_includes="$all_includes_save"

ldflags_save="$LDFLAGS"
LDFLAGS="$LDFLAGS $ac_piolib_libraries"
KDE_CHECK_LIB(piolib, PIOGetObjectList, PIOLIBS="$ac_piolib_libraries -lpiolib $PIOLIBS", , -lm -lpthread -ldl)
LDFLAGS="$ldflags_save"

if test "x$ac_cv_lib_piolib_PIOGetObjectList" = "xyes"; then
  if test "x$have_piolib_h" = "xyes"; then
    AC_SUBST(PIOLIBS)
    AC_SUBST(PIOINCLUDES)
    AC_DEFINE(KST_HAVE_PLANCK, 1, [If we have the PLANCK I/O libraries.])
  fi
fi

AM_CONDITIONAL(include_piolib, test -n "$PIOLIBS")


# LIBNAD Test
ac_nad_includes=""
ac_nad_libraries=""
AC_ARG_WITH(nad,
    AC_HELP_STRING([--with-nad=DIR],[where the root of NAD is installed ]),
    [  ac_nad_includes="-I$withval/include"
       ac_nad_libraries="-L$withval/lib"
    ])

all_includes_save="$all_includes"
all_includes="$all_includes $ac_nad_includes"
KDE_CHECK_HEADER(nad.h, AC_DEFINE(HAVE_NAD_H, 1, [If we have nad headers]) have_nad_h=yes NADINCLUDES="$ac_nad_includes", , )
all_includes="$all_includes_save"

ldflags_save="$LDFLAGS"
LDFLAGS="$LDFLAGS $ac_nad_libraries"
KDE_CHECK_LIB(nad, NADVERSION, NADLIBS="$ac_nad_libraries -lnad -lcurl $NADLIBS", , -lm -lpthread -ldl -lcurl -lqt-mt)
LDFLAGS="$ldflags_save"

if test "x$ac_cv_lib_nad_NADVERSION" = "xyes"; then
  if test "x$have_nad_h" = "xyes"; then
    AC_SUBST(NADLIBS)
    AC_SUBST(NADINCLUDES)
    AC_DEFINE(KST_HAVE_NAD, 1, [If we have the NAD libraries.])
  fi
fi

AM_CONDITIONAL(include_nad, test -n "$NADLIBS")


# Transfer function test
ac_transfunc_includes=""
ac_transfunc_libraries=""
AC_ARG_WITH(transfunc,
    AC_HELP_STRING([--with-transfunc=DIR],[where the root of libtransfunc is installed ]),
    [  ac_transfunc_includes="-I$withval"
       ac_transfunc_libraries="-L$withval"
    ])

if test "x$ac_cv_lib_piolib_PIOGetObjectList" = "xyes"; then
  if test "x$have_piolib_h" = "xyes"; then
    all_includes_save="$all_includes"
    all_includes="$all_includes $ac_transfunc_includes $PIOINCLUDES"
    KDE_CHECK_HEADER(HL2_TransfertFunction/FT.h, AC_DEFINE(HAVE_FT_H, 1, [If we have transfunc headers]) have_FT_h=yes TFINCLUDES="$ac_transfunc_includes", , )
    all_includes="$all_includes_save"

    ldflags_save="$LDFLAGS"
    LDFLAGS="$LDFLAGS $ac_transfunc_libraries"
    KDE_CHECK_LIB(transfunc, HCTtransf1, TRANSFUNCS="$ac_transfunc_libraries -ltransfunc $TRANSFUNCS", , -lm -ldl -lpthread $PIOLIBS)
    LDFLAGS="$ldflags_save"

    if test "x$ac_cv_lib_transfunc_HCTtransf1" = "xyes"; then
      if test "x$have_FT_h" = "xyes"; then
        AC_SUBST(TRANSFUNCS)
        AC_SUBST(TFINCLUDES)
        AC_DEFINE(KST_HAVE_TRANSFUNCS, 1, [If we have the transfunc library.])
      fi
    fi
  fi
fi


# CDF Test
ac_cdf_includes=""
ac_cdf_libraries=""
AC_ARG_WITH(cdf,
    AC_HELP_STRING([--with-cdf=DIR],[where the root of CDF is installed ]),
    [  ac_cdf_includes="-I$withval/include"
       ac_cdf_libraries="-L$withval/lib"
    ])

all_includes_save="$all_includes"
all_includes="$all_includes $ac_cdf_includes"
KDE_CHECK_HEADER(cdf.h, AC_DEFINE(HAVE_CDF_H, 1, [If we have CDF headers]) have_cdf_h=yes CDFINCLUDES="$ac_cdf_includes", , )
all_includes="$all_includes_save"

ldflags_save="$LDFLAGS"
LDFLAGS="$LDFLAGS $ac_cdf_libraries"
KDE_CHECK_LIB(cdf, CDFlib, CDFLIBS="$ac_cdf_libraries -lcdf $CDFLIBS", , )
LDFLAGS="$ldflags_save"

if test "x$ac_cv_lib_cdf_CDFlib" = "xyes"; then
  if test "x$have_cdf_h" = "xyes"; then
    AC_SUBST(CDFLIBS)
    AC_SUBST(CDFINCLUDES)
    AC_DEFINE(KST_HAVE_CDF, 1, [If we have the CDF libraries.])
  fi
fi

AM_CONDITIONAL(include_cdf, test -n "$CDFLIBS")


# netCDF Test
ac_netcdf_includes=""
ac_netcdf_libraries=""
AC_ARG_WITH(netcdf,
    AC_HELP_STRING([--with-netcdf=DIR],[where the root of NetCDF is installed ]),
    [  ac_netcdf_includes="-I$withval/include"
       ac_netcdf_libraries="-L$withval/lib"
    ])
AC_ARG_WITH(nonetcdf,
    AC_HELP_STRING([--without-netcdf],[disable NetCDF support]),[build_netcdf=no],[build_netcdf=maybe])

if test "$build_netcdf" = "maybe"; then
  all_includes_save="$all_includes"
  all_includes="$all_includes $ac_netcdf_includes"
  KDE_CHECK_HEADER(netcdfcpp.h, AC_DEFINE(HAVE_NETCDFCPP_H, 1, [If we have NetCDF CPP headers]) have_netcdfcpp_h=yes NETCDFINCLUDES="$ac_netcdf_includes", , )
  all_includes="$all_includes_save"

  ldflags_save="$LDFLAGS"
  LDFLAGS="$LDFLAGS $ac_netcdf_libraries"
  KDE_CHECK_LIB(netcdf, nc_open, NETCDFLIBS="$ac_netcdf_libraries -lnetcdf_c++ -lnetcdf $NETCDFLIBS", , )
  LDFLAGS="$ldflags_save"

  if test "x$ac_cv_lib_netcdf_nc_open" = "xyes"; then
    if test "x$have_netcdfcpp_h" = "xyes"; then
      AC_SUBST(NETCDFLIBS)
      AC_SUBST(NETCDFINCLUDES)
      AC_DEFINE(KST_HAVE_NETCDF, 1, [If we have the NetCDF libraries.])
    fi
  fi
fi

AM_CONDITIONAL(include_netcdf, test -n "$NETCDFLIBS")

# Readline and ncurses check
KDE_CHECK_HEADER(readline/readline.h, AC_DEFINE(HAVE_READLINE_H, 1, [If we have libreadline headers]) have_readline_h=yes, , )
KDE_CHECK_LIB(readline, rl_cleanup_after_signal, LIBREADLINE="-lreadline -lncurses", , -lncurses)
if test "x$ac_cv_lib_readline_rl_cleanup_after_signal" = "xyes"; then
  if test "x$have_readline_h" = "xyes"; then
    AC_SUBST(LIBREADLINE)
    AC_DEFINE(KST_HAVE_READLINE, 1, [If we have libreadline.])
  else
    AC_MSG_WARN([kstcmd will not be compiled. Please install readline and ncurses])
  fi
else
  AC_MSG_WARN([kstcmd will not be compiled. Please install readline and ncurses])
fi
AM_CONDITIONAL(include_kstcmd, test $have_readline_h = yes -a $ac_cv_lib_readline_rl_cleanup_after_signal = yes)

# GSL Tests
GSL_LIBS="-lgsl -lgslcblas -lm"
AC_SUBST(GSL_LIBS)
GSL_NOISE_SUBDIR="gsl"
GSL_FITS_SUBDIR="gsl"
GSL_FITSNONLINEAR_SUBDIR="gsl"
GSL_INTERPOLATIONS_SUBDIR="gsl"
GSL_PASS_FILTERS_SUBDIR="gsl"
GSL_CONVOLUTION_SUBDIR="gsl"
GSL_CORRELATION_SUBDIR="gsl"
GSL_RANA_SUBDIR="gsl"
KDE_CHECK_HEADER(gsl/gsl_rng.h, ,[GSL_NOISE_SUBDIR=""] )
KDE_CHECK_LIB(gsl, gsl_rng_alloc, ,[GSL_NOISE_SUBDIR=""], -lgslcblas -lm )
KDE_CHECK_HEADER(gsl/gsl_fit.h, ,[GSL_FITS_SUBDIR=""] )
KDE_CHECK_LIB(gsl, gsl_fit_linear, ,[GSL_FITS_SUBDIR=""], -lgslcblas -lm )
KDE_CHECK_HEADER(gsl/gsl_multifit_nlin.h, ,[GSL_FITSNONLINEAR_SUBDIR=""] )
KDE_CHECK_LIB(gsl, gsl_multifit_fdfsolver_alloc, ,[GSL_FITSNONLINEAR_SUBDIR=""], -lgslcblas -lm )
KDE_CHECK_HEADER(gsl/gsl_spline.h, ,[GSL_INTERPOLATIONS_SUBDIR=""] )
KDE_CHECK_LIB(gsl, gsl_interp_init, ,[GSL_INTERPOLATIONS_SUBDIR=""], -lgslcblas -lm )
KDE_CHECK_HEADER(gsl/gsl_fft_real.h, ,[GSL_PASS_FILTERS_SUBDIR=""] )
KDE_CHECK_LIB(gsl, gsl_fft_real_wavetable_alloc, ,[GSL_PASS_FILTERS_SUBDIR=""], -lgslcblas -lm )
KDE_CHECK_HEADER(gsl/gsl_fft_real.h, ,[GSL_CONVOLUTION_SUBDIR=""] )
KDE_CHECK_LIB(gsl, gsl_fft_real_wavetable_alloc, ,[GSL_CONVOLUTION_SUBDIR=""], -lgslcblas -lm )
KDE_CHECK_HEADER(gsl/gsl_fft_real.h, ,[GSL_CORRELATION_SUBDIR=""] )
KDE_CHECK_LIB(gsl, gsl_fft_real_wavetable_alloc, ,[GSL_CORRELATION_SUBDIR=""], -lgslcblas -lm )
KDE_CHECK_HEADER(gsl/gsl_fit.h, ,[GSL_RANA_SUBDIR=""] )
KDE_CHECK_LIB(gsl, gsl_fit_linear, ,[GSL_RANA_SUBDIR=""], -lgslcblas -lm )
AM_CONDITIONAL(include_noise_plugins, test -n "$GSL_NOISE_SUBDIR")
AM_CONDITIONAL(include_fits_plugins, test -n "$GSL_FITS_SUBDIR")
AM_CONDITIONAL(include_fitsnonlinear_plugins, test -n "$GSL_FITSNONLINEAR_SUBDIR")
AM_CONDITIONAL(include_interpolations_plugins, test -n "$GSL_INTERPOLATIONS_SUBDIR")
AM_CONDITIONAL(include_pass_filters_plugins, test -n "$GSL_PASS_FILTERS_SUBDIR")
AM_CONDITIONAL(include_convolution_plugins, test -n "$GSL_CONVOLUTION_SUBDIR")
AM_CONDITIONAL(include_correlation_plugins, test -n "$GSL_CORRELATION_SUBDIR")
AM_CONDITIONAL(include_rana, test -n "$GSL_RANA_SUBDIR")

FITSIO_LIBS="-lcfitsio -lm"
AC_SUBST(FITSIO_LIBS)
FITSIO_SUBDIR="fitsio"
KDE_CHECK_HEADER(fitsio.h, ,[FITSIO_SUBDIR=""] )
KDE_CHECK_LIB(cfitsio, fftopn, ,[FITSIO_SUBDIR=""], -lm )
AM_CONDITIONAL(include_fitsio_datasource, test -n "$FITSIO_SUBDIR")

AC_DEFUN([KST_CHECK_MDI],
[
  AC_MSG_CHECKING(whether to use kmdi lib from kdelibs)
  AC_CACHE_VAL(ac_cv_mdi_setup,
  [
    AC_LANG_SAVE
    AC_LANG_CPLUSPLUS
    save_CXXFLAGS="$CXXFLAGS"
    CXXFLAGS="$KDE_INCLUDES $QT_INCLUDES"

    AC_TRY_LINK([
      #include <kdeversion.h>
    ],
    [
      #if KDE_VERSION < ((3<<16) | (2<<8) | (2))
         KDE_choke me
      #endif
    ],
      ac_cv_mdi_setup=yes,
      ac_cv_mdi_setup=no
    )
    CXXFLAGS="$save_CXXFLAGS"
    AC_LANG_RESTORE
   ])

  AM_CONDITIONAL(include_libkstkmdi, test "$ac_cv_mdi_setup" = "no")
  if test "$ac_cv_mdi_setup" = "yes"; then
    LIB_KMDI="-lkmdi"
    KMDI_INCLUDES=""
    AC_MSG_RESULT(yes)
  else
    LIB_KMDI='$(top_builddir)/kst/src/libkstkmdi/libkstkmdi.la'
    KMDI_INCLUDES='-I$(top_srcdir)/kst/src/libkstkmdi'
    CXXFLAGS="$CXXFLAGS -DCOMPAT_KMDI"
    AC_MSG_RESULT(no)
  fi

  AC_SUBST(LIB_KMDI)
  AC_SUBST(KMDI_INCLUDES)
])

KST_CHECK_MDI

AC_DEFUN([KST_CHECK_JSE],
[
  AC_MSG_CHECKING(whether to use our own KJSEmbed)
  AC_CACHE_VAL(ac_cv_kjs_setup,
  [
    AC_LANG_SAVE
    AC_LANG_CPLUSPLUS
    save_CXXFLAGS="$CXXFLAGS"
    CXXFLAGS="$KDE_INCLUDES $QT_INCLUDES"
    save_LDFLAGS="$LDFLAGS"
    LDFLAGS="$LDFLAGS -L$ac_kde_libraries -lkjsembed"

    AC_TRY_LINK([
      #include <kdeversion.h>
      #include <kjsembed/jssecuritypolicy.h>
    ],
    [
      #if KDE_VERSION < ((3<<16) | (3<<8) | (89))
         KDE_choke me
      #endif
    ],
      ac_cv_kjs_setup=yes,
      ac_cv_kjs_setup=no
    )
    LDFLAGS="$save_LDFLAGS"
    CXXFLAGS="$save_CXXFLAGS"
    AC_LANG_RESTORE
   ])

  if test "$ac_cv_kjs_setup" = "yes"; then
    AC_MSG_RESULT(no)
  else
    AC_MSG_RESULT(yes)
  fi
])

KST_CHECK_JSE

AM_CONDITIONAL(include_kjse_internal, test "x$ac_cv_kjs_setup" = "xno")

KDE_CHECK_HEADER(linux/vt.h, AC_DEFINE(HAVE_LINUX, 1, [If we have a Linux platform]) have_linux=yes, , )
AM_CONDITIONAL(include_linux, test $have_linux = yes)

AC_ARG_WITH(kst-timers,
    AC_HELP_STRING([--with-kst-timers],[compile in timing information]),
    [
        AC_DEFINE(HAVE_KST_USE_TIMERS, 1, [Define if we should compile in timers])
    ])
AM_CONFIG_HEADER([kst/src/libkst/ksttimers.h])

AC_ARG_WITH(one-lock,
    AC_HELP_STRING([--with-one-lock],[build an effectively single-threaded Kst]),
    [
        AC_DEFINE(ONE_LOCK_TO_RULE_THEM_ALL, 1, [Define if we should build with only one mutex])
    ])

KDE_CREATE_SUBDIRSLIST
AM_CONDITIONAL(doc_SUBDIR_included, test "x$doc_SUBDIR_included" = xyes)
AM_CONDITIONAL(kst_SUBDIR_included, test "x$kst_SUBDIR_included" = xyes)
AM_CONDITIONAL(po_SUBDIR_included, test "x$po_SUBDIR_included" = xyes)
AC_CONFIG_FILES([ Makefile ])
AC_CONFIG_FILES([ doc/Makefile ])
AC_CONFIG_FILES([ doc/da/Makefile ])
AC_CONFIG_FILES([ doc/de/Makefile ])
AC_CONFIG_FILES([ doc/es/Makefile ])
AC_CONFIG_FILES([ doc/et/Makefile ])
AC_CONFIG_FILES([ doc/fr/Makefile ])
AC_CONFIG_FILES([ doc/it/Makefile ])
AC_CONFIG_FILES([ doc/kst/Makefile ])
AC_CONFIG_FILES([ doc/nl/Makefile ])
AC_CONFIG_FILES([ doc/pt/Makefile ])
AC_CONFIG_FILES([ doc/sv/Makefile ])
AC_CONFIG_FILES([ kst/Makefile ])
AC_CONFIG_FILES([ kst/misc/Makefile ])
AC_CONFIG_FILES([ kst/misc/fonts/Makefile ])
AC_CONFIG_FILES([ kst/misc/tutorial/Makefile ])
AC_CONFIG_FILES([ kst/src/Makefile ])
AC_CONFIG_FILES([ kst/src/d2asc/Makefile ])
AC_CONFIG_FILES([ kst/src/datasources/Makefile ])
AC_CONFIG_FILES([ kst/src/datasources/ascii/Makefile ])
AC_CONFIG_FILES([ kst/src/datasources/cdf/Makefile ])
AC_CONFIG_FILES([ kst/src/datasources/dirfile/Makefile ])
AC_CONFIG_FILES([ kst/src/datasources/fitsimage/Makefile ])
AC_CONFIG_FILES([ kst/src/datasources/frame/Makefile ])
AC_CONFIG_FILES([ kst/src/datasources/healpix/Makefile ])
AC_CONFIG_FILES([ kst/src/datasources/indirect/Makefile ])
AC_CONFIG_FILES([ kst/src/datasources/lfiio/Makefile ])
AC_CONFIG_FILES([ kst/src/datasources/libfitstools/Makefile ])
AC_CONFIG_FILES([ kst/src/datasources/nad/Makefile ])
AC_CONFIG_FILES([ kst/src/datasources/nad/nadslave/Makefile ])
AC_CONFIG_FILES([ kst/src/datasources/naddirect/Makefile ])
AC_CONFIG_FILES([ kst/src/datasources/naddirect/nadslave/Makefile ])
AC_CONFIG_FILES([ kst/src/datasources/netcdf/Makefile ])
AC_CONFIG_FILES([ kst/src/datasources/planck/Makefile ])
AC_CONFIG_FILES([ kst/src/datasources/qimagesource/Makefile ])
AC_CONFIG_FILES([ kst/src/datasources/template/Makefile ])
AC_CONFIG_FILES([ kst/src/extdate/Makefile ])
AC_CONFIG_FILES([ kst/src/extensions/Makefile ])
AC_CONFIG_FILES([ kst/src/extensions/elog/Makefile ])
AC_CONFIG_FILES([ kst/src/extensions/js/Makefile ])
AC_CONFIG_FILES([ kst/src/extensions/js/kjsembed/Makefile ])
AC_CONFIG_FILES([ kst/src/extensions/js/kjsembed/bindings/Makefile ])
AC_CONFIG_FILES([ kst/src/extensions/js/kjsembed/builtins/Makefile ])
AC_CONFIG_FILES([ kst/src/extensions/js/kjsembed/plugin/Makefile ])
AC_CONFIG_FILES([ kst/src/extensions/js/kjsembed/plugins/Makefile ])
AC_CONFIG_FILES([ kst/src/extensions/js/kjsembed/qtbindings/Makefile ])
AC_CONFIG_FILES([ kst/src/extensions/js/kjsembed/stdlib/Makefile ])
AC_CONFIG_FILES([ kst/src/extensions/pulse/Makefile ])
AC_CONFIG_FILES([ kst/src/extensions/rana/Makefile ])
AC_CONFIG_FILES([ kst/src/kst/Makefile ])
AC_CONFIG_FILES([ kst/src/kst/pics/Makefile ])
AC_CONFIG_FILES([ kst/src/libkst/Makefile ])
AC_CONFIG_FILES([ kst/src/libkstapp/Makefile ])
AC_CONFIG_FILES([ kst/src/libkstkmdi/Makefile ])
AC_CONFIG_FILES([ kst/src/libkstmath/Makefile ])
AC_CONFIG_FILES([ kst/src/plugins/Makefile ])
AC_CONFIG_FILES([ kst/src/plugins/bin/Makefile ])
AC_CONFIG_FILES([ kst/src/plugins/chop/Makefile ])
AC_CONFIG_FILES([ kst/src/plugins/convolution/Makefile ])
AC_CONFIG_FILES([ kst/src/plugins/convolution/convolve/Makefile ])
AC_CONFIG_FILES([ kst/src/plugins/convolution/deconvolve/Makefile ])
AC_CONFIG_FILES([ kst/src/plugins/correlation/Makefile ])
AC_CONFIG_FILES([ kst/src/plugins/correlation/autocorrelation/Makefile ])
AC_CONFIG_FILES([ kst/src/plugins/correlation/crosscorrelation/Makefile ])
AC_CONFIG_FILES([ kst/src/plugins/crossspectrum/Makefile ])
AC_CONFIG_FILES([ kst/src/plugins/cumulative_sum/Makefile ])
AC_CONFIG_FILES([ kst/src/plugins/differentiation/Makefile ])
AC_CONFIG_FILES([ kst/src/plugins/editor/Makefile ])
AC_CONFIG_FILES([ kst/src/plugins/effective_bandwidth/Makefile ])
AC_CONFIG_FILES([ kst/src/plugins/fits/Makefile ])
AC_CONFIG_FILES([ kst/src/plugins/fits/gradient_unweighted/Makefile ])
AC_CONFIG_FILES([ kst/src/plugins/fits/gradient_weighted/Makefile ])
AC_CONFIG_FILES([ kst/src/plugins/fits/kneefrequency_unweighted/Makefile ])
AC_CONFIG_FILES([ kst/src/plugins/fits/linear_unweighted/Makefile ])
AC_CONFIG_FILES([ kst/src/plugins/fits/linear_weighted/Makefile ])
AC_CONFIG_FILES([ kst/src/plugins/fits/polynomial_unweighted/Makefile ])
AC_CONFIG_FILES([ kst/src/plugins/fits/polynomial_weighted/Makefile ])
AC_CONFIG_FILES([ kst/src/plugins/fits/sinusoid_unweighted/Makefile ])
AC_CONFIG_FILES([ kst/src/plugins/fits/sinusoid_weighted/Makefile ])
AC_CONFIG_FILES([ kst/src/plugins/fits_nonlinear/Makefile ])
AC_CONFIG_FILES([ kst/src/plugins/fits_nonlinear/exponential/Makefile ])
AC_CONFIG_FILES([ kst/src/plugins/fits_nonlinear/exponential_weighted/Makefile ])
AC_CONFIG_FILES([ kst/src/plugins/fits_nonlinear/gaussian/Makefile ])
AC_CONFIG_FILES([ kst/src/plugins/fits_nonlinear/gaussian_weighted/Makefile ])
AC_CONFIG_FILES([ kst/src/plugins/fits_nonlinear/lorentzian/Makefile ])
AC_CONFIG_FILES([ kst/src/plugins/fits_nonlinear/lorentzian_weighted/Makefile ])
AC_CONFIG_FILES([ kst/src/plugins/interpolations/Makefile ])
AC_CONFIG_FILES([ kst/src/plugins/interpolations/akima/Makefile ])
AC_CONFIG_FILES([ kst/src/plugins/interpolations/akima_periodic/Makefile ])
AC_CONFIG_FILES([ kst/src/plugins/interpolations/cspline/Makefile ])
AC_CONFIG_FILES([ kst/src/plugins/interpolations/cspline_periodic/Makefile ])
AC_CONFIG_FILES([ kst/src/plugins/interpolations/linear/Makefile ])
AC_CONFIG_FILES([ kst/src/plugins/interpolations/polynomial/Makefile ])
AC_CONFIG_FILES([ kst/src/plugins/linefit/Makefile ])
AC_CONFIG_FILES([ kst/src/plugins/noise_addition/Makefile ])
AC_CONFIG_FILES([ kst/src/plugins/pass_filters/Makefile ])
AC_CONFIG_FILES([ kst/src/plugins/pass_filters/butterworth_bandpass/Makefile ])
AC_CONFIG_FILES([ kst/src/plugins/pass_filters/butterworth_bandstop/Makefile ])
AC_CONFIG_FILES([ kst/src/plugins/pass_filters/butterworth_highpass/Makefile ])
AC_CONFIG_FILES([ kst/src/plugins/pass_filters/butterworth_lowpass/Makefile ])
AC_CONFIG_FILES([ kst/src/plugins/periodogram/Makefile ])
AC_CONFIG_FILES([ kst/src/plugins/phase/Makefile ])
AC_CONFIG_FILES([ kst/src/plugins/shift/Makefile ])
AC_CONFIG_FILES([ kst/src/plugins/statistics/Makefile ])
AC_CONFIG_FILES([ kst/src/plugins/syncbin/Makefile ])
AC_CONFIG_FILES([ kst/src/widgets/Makefile ])
AC_CONFIG_FILES([ kst/tests/Makefile ])
AC_CONFIG_FILES([ kst/tests/healpix/Makefile ])
AC_CONFIG_FILES([ kst/tests/kstXbench/Makefile ])
AC_CONFIG_FILES([ kst/tests/planck/Makefile ])
AC_CONFIG_FILES([ po/Makefile ])
AC_CONFIG_FILES([ po/bg/Makefile ])
AC_CONFIG_FILES([ po/br/Makefile ])
AC_CONFIG_FILES([ po/ca/Makefile ])
AC_CONFIG_FILES([ po/cs/Makefile ])
AC_CONFIG_FILES([ po/cy/Makefile ])
AC_CONFIG_FILES([ po/da/Makefile ])
AC_CONFIG_FILES([ po/de/Makefile ])
AC_CONFIG_FILES([ po/el/Makefile ])
AC_CONFIG_FILES([ po/en_GB/Makefile ])
AC_CONFIG_FILES([ po/es/Makefile ])
AC_CONFIG_FILES([ po/et/Makefile ])
AC_CONFIG_FILES([ po/fr/Makefile ])
AC_CONFIG_FILES([ po/ga/Makefile ])
AC_CONFIG_FILES([ po/gl/Makefile ])
AC_CONFIG_FILES([ po/hi/Makefile ])
AC_CONFIG_FILES([ po/is/Makefile ])
AC_CONFIG_FILES([ po/it/Makefile ])
AC_CONFIG_FILES([ po/ka/Makefile ])
AC_CONFIG_FILES([ po/lt/Makefile ])
AC_CONFIG_FILES([ po/mt/Makefile ])
AC_CONFIG_FILES([ po/nb/Makefile ])
AC_CONFIG_FILES([ po/nl/Makefile ])
AC_CONFIG_FILES([ po/nn/Makefile ])
AC_CONFIG_FILES([ po/pa/Makefile ])
AC_CONFIG_FILES([ po/pl/Makefile ])
AC_CONFIG_FILES([ po/pt/Makefile ])
AC_CONFIG_FILES([ po/pt_BR/Makefile ])
AC_CONFIG_FILES([ po/ro/Makefile ])
AC_CONFIG_FILES([ po/ru/Makefile ])
AC_CONFIG_FILES([ po/rw/Makefile ])
AC_CONFIG_FILES([ po/sk/Makefile ])
AC_CONFIG_FILES([ po/sr/Makefile ])
AC_CONFIG_FILES([ po/sr@Latn/Makefile ])
AC_CONFIG_FILES([ po/sv/Makefile ])
AC_CONFIG_FILES([ po/ta/Makefile ])
AC_CONFIG_FILES([ po/tr/Makefile ])
AC_CONFIG_FILES([ po/uk/Makefile ])
AC_CONFIG_FILES([ po/zh_CN/Makefile ])
AC_CONFIG_FILES([ kst/kst.spec ])
AC_CONFIG_FILES([ kst/kst.lsm ])
AC_OUTPUT
# Check if KDE_SET_PREFIX was called, and --prefix was passed to configure
if test -n "$kde_libs_prefix" -a -n "$given_prefix"; then
  # And if so, warn when they don't match
  if test "$kde_libs_prefix" != "$given_prefix"; then
    # And if kde doesn't know about the prefix yet
    echo ":"`kde-config --path exe`":" | grep ":$given_prefix/bin/:" 2>&1 >/dev/null
    if test $? -ne 0; then
      echo ""
      echo "Warning: you chose to install this package in $given_prefix,"
      echo "but KDE was found in $kde_libs_prefix."
      echo "For this to work, you will need to tell KDE about the new prefix, by ensuring"
      echo "that KDEDIRS contains it, e.g. export KDEDIRS=$given_prefix:$kde_libs_prefix"
      echo "Then restart KDE."
      echo ""
    fi
  fi
fi

if test x$GXX = "xyes" -a x$kde_have_gcc_visibility = "xyes" -a x$kde_cv_val_qt_gcc_visibility_patched = "xno"; then
  echo ""
  echo "Your GCC supports symbol visibility, but the patch for Qt supporting visibility"
  echo "was not included. Therefore, GCC symbol visibility support remains disabled."
  echo ""
  echo "For better performance, consider including the Qt visibility supporting patch"
  echo "located at:"
  echo ""
  echo "http://bugs.kde.org/show_bug.cgi?id=109386"
  echo ""
  echo "and recompile all of Qt and KDE. Note, this is entirely optional and"
  echo "everything will continue to work just fine without it."
  echo ""
fi

if test "$all_tests" = "bad"; then
  if test ! "$cache_file" = "/dev/null"; then
    echo ""
    echo "Please remove the file $cache_file after changing your setup"
    echo "so that configure will find the changes next time."
    echo ""
  fi
else
  echo ""
  echo "Good - your configure finished. Start make now"
  echo ""
fi