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
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
|
--- configure.orig Mon Oct 7 03:53:55 2002
+++ configure Sat Oct 12 18:06:18 2002
@@ -310,7 +310,7 @@
# include <unistd.h>
#endif"
-ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CPP RANLIB ac_ct_RANLIB AR EGREP antlr_path dlg_path LAME_CFLAGS LAME_LIBS PKG_CONFIG ac_pt_PKG_CONFIG SIGCPP2_CFLAGS SIGCPP2_LIBS GTKMM2_CFLAGS GTKMM2_LIBS LIBGUIMM2_CFLAGS LIBGUIMM2_LIBS VORBISFILE_CFLAGS VORBISFILE_LIBS MAD_CFLAGS MAD_LIBS AO_CFLAGS AO_LIBS en_xdao en_toc2mp3 en_toc2cue en_cue2toc en_cdrdao scsilib_dir scsilib_incl scsilib_libs scsilib_objs pcctsinc dao_src sound_if_obj thread_libs mydefs COND_XDAO_TRUE COND_XDAO_FALSE COND_TOC2MP3_TRUE COND_TOC2MP3_FALSE COND_SCSILIB_TRUE COND_SCSILIB_FALSE COND_PCCTS_TRUE COND_PCCTS_FALSE COND_MP3_TRUE COND_MP3_FALSE COND_OGG_TRUE COND_OGG_FALSE LIBOBJS LTLIBOBJS'
+ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CPP RANLIB ac_ct_RANLIB AR EGREP antlr_path dlg_path LAME_CFLAGS LAME_LIBS PKG_CONFIG SIGCPP2_CFLAGS SIGCPP2_LIBS GTKMM2_CFLAGS GTKMM2_LIBS LIBGUIMM2_CFLAGS LIBGUIMM2_LIBS VORBISFILE_CFLAGS VORBISFILE_LIBS MAD_CFLAGS MAD_LIBS AO_CFLAGS AO_LIBS en_xdao en_toc2mp3 en_toc2cue en_cue2toc en_cdrdao scsilib_dir scsilib_incl scsilib_libs scsilib_objs pcctsinc dao_src sound_if_obj thread_libs mydefs COND_XDAO_TRUE COND_XDAO_FALSE COND_TOC2MP3_TRUE COND_TOC2MP3_FALSE COND_SCSILIB_TRUE COND_SCSILIB_FALSE COND_PCCTS_TRUE COND_PCCTS_FALSE COND_MP3_TRUE COND_MP3_FALSE COND_OGG_TRUE COND_OGG_FALSE LIBOBJS LTLIBOBJS'
ac_subst_files=''
# Initialize some variables set by options.
@@ -779,58 +779,14 @@
ac_env_CPP_value=$CPP
ac_cv_env_CPP_set=${CPP+set}
ac_cv_env_CPP_value=$CPP
-ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
-ac_env_PKG_CONFIG_value=$PKG_CONFIG
-ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
-ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
-ac_env_SIGCPP2_CFLAGS_set=${SIGCPP2_CFLAGS+set}
-ac_env_SIGCPP2_CFLAGS_value=$SIGCPP2_CFLAGS
-ac_cv_env_SIGCPP2_CFLAGS_set=${SIGCPP2_CFLAGS+set}
-ac_cv_env_SIGCPP2_CFLAGS_value=$SIGCPP2_CFLAGS
-ac_env_SIGCPP2_LIBS_set=${SIGCPP2_LIBS+set}
-ac_env_SIGCPP2_LIBS_value=$SIGCPP2_LIBS
-ac_cv_env_SIGCPP2_LIBS_set=${SIGCPP2_LIBS+set}
-ac_cv_env_SIGCPP2_LIBS_value=$SIGCPP2_LIBS
-ac_env_GTKMM2_CFLAGS_set=${GTKMM2_CFLAGS+set}
-ac_env_GTKMM2_CFLAGS_value=$GTKMM2_CFLAGS
-ac_cv_env_GTKMM2_CFLAGS_set=${GTKMM2_CFLAGS+set}
-ac_cv_env_GTKMM2_CFLAGS_value=$GTKMM2_CFLAGS
-ac_env_GTKMM2_LIBS_set=${GTKMM2_LIBS+set}
-ac_env_GTKMM2_LIBS_value=$GTKMM2_LIBS
-ac_cv_env_GTKMM2_LIBS_set=${GTKMM2_LIBS+set}
-ac_cv_env_GTKMM2_LIBS_value=$GTKMM2_LIBS
-ac_env_LIBGUIMM2_CFLAGS_set=${LIBGUIMM2_CFLAGS+set}
-ac_env_LIBGUIMM2_CFLAGS_value=$LIBGUIMM2_CFLAGS
-ac_cv_env_LIBGUIMM2_CFLAGS_set=${LIBGUIMM2_CFLAGS+set}
-ac_cv_env_LIBGUIMM2_CFLAGS_value=$LIBGUIMM2_CFLAGS
-ac_env_LIBGUIMM2_LIBS_set=${LIBGUIMM2_LIBS+set}
-ac_env_LIBGUIMM2_LIBS_value=$LIBGUIMM2_LIBS
-ac_cv_env_LIBGUIMM2_LIBS_set=${LIBGUIMM2_LIBS+set}
-ac_cv_env_LIBGUIMM2_LIBS_value=$LIBGUIMM2_LIBS
-ac_env_VORBISFILE_CFLAGS_set=${VORBISFILE_CFLAGS+set}
-ac_env_VORBISFILE_CFLAGS_value=$VORBISFILE_CFLAGS
-ac_cv_env_VORBISFILE_CFLAGS_set=${VORBISFILE_CFLAGS+set}
-ac_cv_env_VORBISFILE_CFLAGS_value=$VORBISFILE_CFLAGS
-ac_env_VORBISFILE_LIBS_set=${VORBISFILE_LIBS+set}
-ac_env_VORBISFILE_LIBS_value=$VORBISFILE_LIBS
-ac_cv_env_VORBISFILE_LIBS_set=${VORBISFILE_LIBS+set}
-ac_cv_env_VORBISFILE_LIBS_value=$VORBISFILE_LIBS
-ac_env_MAD_CFLAGS_set=${MAD_CFLAGS+set}
-ac_env_MAD_CFLAGS_value=$MAD_CFLAGS
-ac_cv_env_MAD_CFLAGS_set=${MAD_CFLAGS+set}
-ac_cv_env_MAD_CFLAGS_value=$MAD_CFLAGS
ac_env_MAD_LIBS_set=${MAD_LIBS+set}
ac_env_MAD_LIBS_value=$MAD_LIBS
ac_cv_env_MAD_LIBS_set=${MAD_LIBS+set}
ac_cv_env_MAD_LIBS_value=$MAD_LIBS
-ac_env_AO_CFLAGS_set=${AO_CFLAGS+set}
-ac_env_AO_CFLAGS_value=$AO_CFLAGS
-ac_cv_env_AO_CFLAGS_set=${AO_CFLAGS+set}
-ac_cv_env_AO_CFLAGS_value=$AO_CFLAGS
-ac_env_AO_LIBS_set=${AO_LIBS+set}
-ac_env_AO_LIBS_value=$AO_LIBS
-ac_cv_env_AO_LIBS_set=${AO_LIBS+set}
-ac_cv_env_AO_LIBS_value=$AO_LIBS
+ac_env_MAD_CFLAGS_set=${MAD_CFLAGS+set}
+ac_env_MAD_CFLAGS_value=$MAD_CFLAGS
+ac_cv_env_MAD_CFLAGS_set=${MAD_CFLAGS+set}
+ac_cv_env_MAD_CFLAGS_value=$MAD_CFLAGS
#
# Report the --help message.
@@ -945,26 +901,8 @@
CXX C++ compiler command
CXXFLAGS C++ compiler flags
CPP C preprocessor
- PKG_CONFIG path to pkg-config utility
- SIGCPP2_CFLAGS
- C compiler flags for SIGCPP2, overriding pkg-config
- SIGCPP2_LIBS
- linker flags for SIGCPP2, overriding pkg-config
- GTKMM2_CFLAGS
- C compiler flags for GTKMM2, overriding pkg-config
- GTKMM2_LIBS linker flags for GTKMM2, overriding pkg-config
- LIBGUIMM2_CFLAGS
- C compiler flags for LIBGUIMM2, overriding pkg-config
- LIBGUIMM2_LIBS
- linker flags for LIBGUIMM2, overriding pkg-config
- VORBISFILE_CFLAGS
- C compiler flags for VORBISFILE, overriding pkg-config
- VORBISFILE_LIBS
- linker flags for VORBISFILE, overriding pkg-config
- MAD_CFLAGS C compiler flags for MAD, overriding pkg-config
- MAD_LIBS linker flags for MAD, overriding pkg-config
- AO_CFLAGS C compiler flags for AO, overriding pkg-config
- AO_LIBS linker flags for AO, overriding pkg-config
+ MAD_LIBS ""
+ MAD_CFLAGS ""
Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.
@@ -9831,11 +9769,11 @@
if test "$xdao" = yes; then
en_xdao=yes
+ succeeded=no
-if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
- if test -n "$ac_tool_prefix"; then
- # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
-set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
+ if test -z "$PKG_CONFIG"; then
+ # Extract the first word of "pkg-config", so it can be a program name with args.
+set dummy pkg-config; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
@@ -9860,6 +9798,7 @@
done
done
+ test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
;;
esac
fi
@@ -9873,19 +9812,72 @@
echo "${ECHO_T}no" >&6
fi
-fi
-if test -z "$ac_cv_path_PKG_CONFIG"; then
- ac_pt_PKG_CONFIG=$PKG_CONFIG
- # Extract the first word of "pkg-config", so it can be a program name with args.
+ fi
+
+ if test "$PKG_CONFIG" = "no" ; then
+ echo "*** The pkg-config script could not be found. Make sure it is"
+ echo "*** in your path, or set the PKG_CONFIG environment variable"
+ echo "*** to the full path to pkg-config."
+ echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
+ else
+ PKG_CONFIG_MIN_VERSION=0.9.0
+ if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
+ echo "$as_me:$LINENO: checking for sigc++-2.0 >= 2.0.0" >&5
+echo $ECHO_N "checking for sigc++-2.0 >= 2.0.0... $ECHO_C" >&6
+
+ if $PKG_CONFIG --exists "sigc++-2.0 >= 2.0.0" ; then
+ echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+ succeeded=yes
+
+ echo "$as_me:$LINENO: checking SIGCPP2_CFLAGS" >&5
+echo $ECHO_N "checking SIGCPP2_CFLAGS... $ECHO_C" >&6
+ SIGCPP2_CFLAGS=`$PKG_CONFIG --cflags "sigc++-2.0 >= 2.0.0"`
+ echo "$as_me:$LINENO: result: $SIGCPP2_CFLAGS" >&5
+echo "${ECHO_T}$SIGCPP2_CFLAGS" >&6
+
+ echo "$as_me:$LINENO: checking SIGCPP2_LIBS" >&5
+echo $ECHO_N "checking SIGCPP2_LIBS... $ECHO_C" >&6
+ SIGCPP2_LIBS=`$PKG_CONFIG --libs "sigc++-2.0 >= 2.0.0"`
+ echo "$as_me:$LINENO: result: $SIGCPP2_LIBS" >&5
+echo "${ECHO_T}$SIGCPP2_LIBS" >&6
+ else
+ SIGCPP2_CFLAGS=""
+ SIGCPP2_LIBS=""
+ ## If we have a custom action on failure, don't print errors, but
+ ## do set a variable so people can do so.
+ SIGCPP2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sigc++-2.0 >= 2.0.0"`
+
+ fi
+
+
+
+ else
+ echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
+ echo "*** See http://www.freedesktop.org/software/pkgconfig"
+ fi
+ fi
+
+ if test $succeeded = yes; then
+ :
+ else
+ echo "Building of gcdmaster disabled"; en_xdao=no
+ fi
+
+
+ succeeded=no
+
+ if test -z "$PKG_CONFIG"; then
+ # Extract the first word of "pkg-config", so it can be a program name with args.
set dummy pkg-config; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
-if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
+if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
- case $ac_pt_PKG_CONFIG in
+ case $PKG_CONFIG in
[\\/]* | ?:[\\/]*)
- ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
+ ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
;;
*)
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
@@ -9895,253 +9887,175 @@
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
+ ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
+ test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
;;
esac
fi
-ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
+PKG_CONFIG=$ac_cv_path_PKG_CONFIG
-if test -n "$ac_pt_PKG_CONFIG"; then
- echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
-echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
+if test -n "$PKG_CONFIG"; then
+ echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
+echo "${ECHO_T}$PKG_CONFIG" >&6
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
- PKG_CONFIG=$ac_pt_PKG_CONFIG
-else
- PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
-fi
+ fi
-fi
-if test -n "$PKG_CONFIG"; then
- _pkg_min_version=0.9.0
- echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
-echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
- if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
- echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6
- else
- echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6
- PKG_CONFIG=""
- fi
+ if test "$PKG_CONFIG" = "no" ; then
+ echo "*** The pkg-config script could not be found. Make sure it is"
+ echo "*** in your path, or set the PKG_CONFIG environment variable"
+ echo "*** to the full path to pkg-config."
+ echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
+ else
+ PKG_CONFIG_MIN_VERSION=0.9.0
+ if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
+ echo "$as_me:$LINENO: checking for gtkmm-2.4 >= 2.4.0" >&5
+echo $ECHO_N "checking for gtkmm-2.4 >= 2.4.0... $ECHO_C" >&6
-fi
+ if $PKG_CONFIG --exists "gtkmm-2.4 >= 2.4.0" ; then
+ echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+ succeeded=yes
-pkg_failed=no
-echo "$as_me:$LINENO: checking for SIGCPP2" >&5
-echo $ECHO_N "checking for SIGCPP2... $ECHO_C" >&6
+ echo "$as_me:$LINENO: checking GTKMM2_CFLAGS" >&5
+echo $ECHO_N "checking GTKMM2_CFLAGS... $ECHO_C" >&6
+ GTKMM2_CFLAGS=`$PKG_CONFIG --cflags "gtkmm-2.4 >= 2.4.0"`
+ echo "$as_me:$LINENO: result: $GTKMM2_CFLAGS" >&5
+echo "${ECHO_T}$GTKMM2_CFLAGS" >&6
+
+ echo "$as_me:$LINENO: checking GTKMM2_LIBS" >&5
+echo $ECHO_N "checking GTKMM2_LIBS... $ECHO_C" >&6
+ GTKMM2_LIBS=`$PKG_CONFIG --libs "gtkmm-2.4 >= 2.4.0"`
+ echo "$as_me:$LINENO: result: $GTKMM2_LIBS" >&5
+echo "${ECHO_T}$GTKMM2_LIBS" >&6
+ else
+ GTKMM2_CFLAGS=""
+ GTKMM2_LIBS=""
+ ## If we have a custom action on failure, don't print errors, but
+ ## do set a variable so people can do so.
+ GTKMM2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtkmm-2.4 >= 2.4.0"`
-if test -n "$PKG_CONFIG"; then
- if test -n "$SIGCPP2_CFLAGS"; then
- pkg_cv_SIGCPP2_CFLAGS="$SIGCPP2_CFLAGS"
- else
- if test -n "$PKG_CONFIG" && \
- { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sigc++-2.0 >= 2.0.0\"") >&5
- ($PKG_CONFIG --exists --print-errors "sigc++-2.0 >= 2.0.0") 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; then
- pkg_cv_SIGCPP2_CFLAGS=`$PKG_CONFIG --cflags "sigc++-2.0 >= 2.0.0" 2>/dev/null`
-else
- pkg_failed=yes
-fi
- fi
-else
- pkg_failed=untried
-fi
-if test -n "$PKG_CONFIG"; then
- if test -n "$SIGCPP2_LIBS"; then
- pkg_cv_SIGCPP2_LIBS="$SIGCPP2_LIBS"
- else
- if test -n "$PKG_CONFIG" && \
- { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sigc++-2.0 >= 2.0.0\"") >&5
- ($PKG_CONFIG --exists --print-errors "sigc++-2.0 >= 2.0.0") 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; then
- pkg_cv_SIGCPP2_LIBS=`$PKG_CONFIG --libs "sigc++-2.0 >= 2.0.0" 2>/dev/null`
-else
- pkg_failed=yes
-fi
- fi
-else
- pkg_failed=untried
-fi
+ fi
-if test $pkg_failed = yes; then
+ else
+ echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
+ echo "*** See http://www.freedesktop.org/software/pkgconfig"
+ fi
+ fi
-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
-else
- _pkg_short_errors_supported=no
-fi
- if test $_pkg_short_errors_supported = yes; then
- SIGCPP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sigc++-2.0 >= 2.0.0"`
- else
- SIGCPP2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sigc++-2.0 >= 2.0.0"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$SIGCPP2_PKG_ERRORS" >&5
+ if test $succeeded = yes; then
+ :
+ else
+ echo "Building of gcdmaster disabled"; en_xdao=no
+ fi
- echo "Building of gcdmaster disabled"; en_xdao=no
-elif test $pkg_failed = untried; then
- echo "Building of gcdmaster disabled"; en_xdao=no
-else
- SIGCPP2_CFLAGS=$pkg_cv_SIGCPP2_CFLAGS
- SIGCPP2_LIBS=$pkg_cv_SIGCPP2_LIBS
- echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6
- :
-fi
-pkg_failed=no
-echo "$as_me:$LINENO: checking for GTKMM2" >&5
-echo $ECHO_N "checking for GTKMM2... $ECHO_C" >&6
+ succeeded=no
-if test -n "$PKG_CONFIG"; then
- if test -n "$GTKMM2_CFLAGS"; then
- pkg_cv_GTKMM2_CFLAGS="$GTKMM2_CFLAGS"
- else
- if test -n "$PKG_CONFIG" && \
- { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtkmm-2.4 >= 2.4.0\"") >&5
- ($PKG_CONFIG --exists --print-errors "gtkmm-2.4 >= 2.4.0") 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; then
- pkg_cv_GTKMM2_CFLAGS=`$PKG_CONFIG --cflags "gtkmm-2.4 >= 2.4.0" 2>/dev/null`
-else
- pkg_failed=yes
-fi
- fi
+ if test -z "$PKG_CONFIG"; then
+ # Extract the first word of "pkg-config", so it can be a program name with args.
+set dummy pkg-config; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
else
- pkg_failed=untried
+ case $PKG_CONFIG in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+ test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
+ ;;
+esac
fi
+PKG_CONFIG=$ac_cv_path_PKG_CONFIG
+
if test -n "$PKG_CONFIG"; then
- if test -n "$GTKMM2_LIBS"; then
- pkg_cv_GTKMM2_LIBS="$GTKMM2_LIBS"
- else
- if test -n "$PKG_CONFIG" && \
- { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtkmm-2.4 >= 2.4.0\"") >&5
- ($PKG_CONFIG --exists --print-errors "gtkmm-2.4 >= 2.4.0") 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; then
- pkg_cv_GTKMM2_LIBS=`$PKG_CONFIG --libs "gtkmm-2.4 >= 2.4.0" 2>/dev/null`
-else
- pkg_failed=yes
-fi
- fi
+ echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
+echo "${ECHO_T}$PKG_CONFIG" >&6
else
- pkg_failed=untried
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
fi
+ fi
+ if test "$PKG_CONFIG" = "no" ; then
+ echo "*** The pkg-config script could not be found. Make sure it is"
+ echo "*** in your path, or set the PKG_CONFIG environment variable"
+ echo "*** to the full path to pkg-config."
+ echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
+ else
+ PKG_CONFIG_MIN_VERSION=0.9.0
+ if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
+ echo "$as_me:$LINENO: checking for libgnomeuimm-2.6 >= 2.6.0" >&5
+echo $ECHO_N "checking for libgnomeuimm-2.6 >= 2.6.0... $ECHO_C" >&6
-if test $pkg_failed = yes; then
-
-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
-else
- _pkg_short_errors_supported=no
-fi
- if test $_pkg_short_errors_supported = yes; then
- GTKMM2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtkmm-2.4 >= 2.4.0"`
- else
- GTKMM2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtkmm-2.4 >= 2.4.0"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$GTKMM2_PKG_ERRORS" >&5
-
- echo "Building of gcdmaster disabled"; en_xdao=no
-elif test $pkg_failed = untried; then
- echo "Building of gcdmaster disabled"; en_xdao=no
-else
- GTKMM2_CFLAGS=$pkg_cv_GTKMM2_CFLAGS
- GTKMM2_LIBS=$pkg_cv_GTKMM2_LIBS
- echo "$as_me:$LINENO: result: yes" >&5
+ if $PKG_CONFIG --exists "libgnomeuimm-2.6 >= 2.6.0" ; then
+ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
- :
-fi
+ succeeded=yes
-pkg_failed=no
-echo "$as_me:$LINENO: checking for LIBGUIMM2" >&5
-echo $ECHO_N "checking for LIBGUIMM2... $ECHO_C" >&6
+ echo "$as_me:$LINENO: checking LIBGUIMM2_CFLAGS" >&5
+echo $ECHO_N "checking LIBGUIMM2_CFLAGS... $ECHO_C" >&6
+ LIBGUIMM2_CFLAGS=`$PKG_CONFIG --cflags "libgnomeuimm-2.6 >= 2.6.0"`
+ echo "$as_me:$LINENO: result: $LIBGUIMM2_CFLAGS" >&5
+echo "${ECHO_T}$LIBGUIMM2_CFLAGS" >&6
+
+ echo "$as_me:$LINENO: checking LIBGUIMM2_LIBS" >&5
+echo $ECHO_N "checking LIBGUIMM2_LIBS... $ECHO_C" >&6
+ LIBGUIMM2_LIBS=`$PKG_CONFIG --libs "libgnomeuimm-2.6 >= 2.6.0"`
+ echo "$as_me:$LINENO: result: $LIBGUIMM2_LIBS" >&5
+echo "${ECHO_T}$LIBGUIMM2_LIBS" >&6
+ else
+ LIBGUIMM2_CFLAGS=""
+ LIBGUIMM2_LIBS=""
+ ## If we have a custom action on failure, don't print errors, but
+ ## do set a variable so people can do so.
+ LIBGUIMM2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeuimm-2.6 >= 2.6.0"`
-if test -n "$PKG_CONFIG"; then
- if test -n "$LIBGUIMM2_CFLAGS"; then
- pkg_cv_LIBGUIMM2_CFLAGS="$LIBGUIMM2_CFLAGS"
- else
- if test -n "$PKG_CONFIG" && \
- { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeuimm-2.6 >= 2.6.0\"") >&5
- ($PKG_CONFIG --exists --print-errors "libgnomeuimm-2.6 >= 2.6.0") 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; then
- pkg_cv_LIBGUIMM2_CFLAGS=`$PKG_CONFIG --cflags "libgnomeuimm-2.6 >= 2.6.0" 2>/dev/null`
-else
- pkg_failed=yes
-fi
- fi
-else
- pkg_failed=untried
-fi
-if test -n "$PKG_CONFIG"; then
- if test -n "$LIBGUIMM2_LIBS"; then
- pkg_cv_LIBGUIMM2_LIBS="$LIBGUIMM2_LIBS"
- else
- if test -n "$PKG_CONFIG" && \
- { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeuimm-2.6 >= 2.6.0\"") >&5
- ($PKG_CONFIG --exists --print-errors "libgnomeuimm-2.6 >= 2.6.0") 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; then
- pkg_cv_LIBGUIMM2_LIBS=`$PKG_CONFIG --libs "libgnomeuimm-2.6 >= 2.6.0" 2>/dev/null`
-else
- pkg_failed=yes
-fi
- fi
-else
- pkg_failed=untried
-fi
+ fi
-if test $pkg_failed = yes; then
+ else
+ echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
+ echo "*** See http://www.freedesktop.org/software/pkgconfig"
+ fi
+ fi
-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
-else
- _pkg_short_errors_supported=no
-fi
- if test $_pkg_short_errors_supported = yes; then
- LIBGUIMM2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeuimm-2.6 >= 2.6.0"`
- else
- LIBGUIMM2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeuimm-2.6 >= 2.6.0"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$LIBGUIMM2_PKG_ERRORS" >&5
+ if test $succeeded = yes; then
+ :
+ else
+ echo "Building of gcdmaster disabled"; en_xdao=no
+ fi
- echo "Building of gcdmaster disabled"; en_xdao=no
-elif test $pkg_failed = untried; then
- echo "Building of gcdmaster disabled"; en_xdao=no
-else
- LIBGUIMM2_CFLAGS=$pkg_cv_LIBGUIMM2_CFLAGS
- LIBGUIMM2_LIBS=$pkg_cv_LIBGUIMM2_LIBS
- echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6
- :
-fi
fi
@@ -10333,10 +10247,7 @@
scsilib_objs="ScsiIf-lib.o"
case "$host" in
- *-freebsd2*)
- scsilib_libs="$scsilib_libs"
- ;;
- *-freebsd[34567]*)
+ *-freebsd*)
scsilib_libs="$scsilib_libs -lcam"
;;
esac
@@ -10355,7 +10266,7 @@
scsilib_objs="ScsiIf-linux.o sg_err.o"
;;
- *-freebsd[34567]*)
+ *-freebsd*)
scsilib_libs="-lcam"
scsilib_objs="ScsiIf-freebsd-cam.o"
;;
@@ -10601,7 +10512,7 @@
esac
case "$host" in
- *-linux* | *-freebsd[4567]* | *-solaris*)
+ *-linux* | *-freebsd* | *-solaris*)
sound_if_obj=SoundIF-ao.o
;;
@@ -10612,146 +10523,200 @@
if test "$with_ogg_support" = yes; then
-pkg_failed=no
-echo "$as_me:$LINENO: checking for VORBISFILE" >&5
-echo $ECHO_N "checking for VORBISFILE... $ECHO_C" >&6
+ succeeded=no
-if test -n "$PKG_CONFIG"; then
- if test -n "$VORBISFILE_CFLAGS"; then
- pkg_cv_VORBISFILE_CFLAGS="$VORBISFILE_CFLAGS"
- else
- if test -n "$PKG_CONFIG" && \
- { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"vorbisfile >= 1.0\"") >&5
- ($PKG_CONFIG --exists --print-errors "vorbisfile >= 1.0") 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; then
- pkg_cv_VORBISFILE_CFLAGS=`$PKG_CONFIG --cflags "vorbisfile >= 1.0" 2>/dev/null`
-else
- pkg_failed=yes
-fi
- fi
+ if test -z "$PKG_CONFIG"; then
+ # Extract the first word of "pkg-config", so it can be a program name with args.
+set dummy pkg-config; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
else
- pkg_failed=untried
+ case $PKG_CONFIG in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+ test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
+ ;;
+esac
fi
+PKG_CONFIG=$ac_cv_path_PKG_CONFIG
+
if test -n "$PKG_CONFIG"; then
- if test -n "$VORBISFILE_LIBS"; then
- pkg_cv_VORBISFILE_LIBS="$VORBISFILE_LIBS"
- else
- if test -n "$PKG_CONFIG" && \
- { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"vorbisfile >= 1.0\"") >&5
- ($PKG_CONFIG --exists --print-errors "vorbisfile >= 1.0") 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; then
- pkg_cv_VORBISFILE_LIBS=`$PKG_CONFIG --libs "vorbisfile >= 1.0" 2>/dev/null`
-else
- pkg_failed=yes
-fi
- fi
+ echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
+echo "${ECHO_T}$PKG_CONFIG" >&6
else
- pkg_failed=untried
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
fi
+ fi
+ if test "$PKG_CONFIG" = "no" ; then
+ echo "*** The pkg-config script could not be found. Make sure it is"
+ echo "*** in your path, or set the PKG_CONFIG environment variable"
+ echo "*** to the full path to pkg-config."
+ echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
+ else
+ PKG_CONFIG_MIN_VERSION=0.9.0
+ if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
+ echo "$as_me:$LINENO: checking for vorbisfile >= 1.0" >&5
+echo $ECHO_N "checking for vorbisfile >= 1.0... $ECHO_C" >&6
-if test $pkg_failed = yes; then
+ if $PKG_CONFIG --exists "vorbisfile >= 1.0" ; then
+ echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+ succeeded=yes
-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
-else
- _pkg_short_errors_supported=no
-fi
- if test $_pkg_short_errors_supported = yes; then
- VORBISFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "vorbisfile >= 1.0"`
+ echo "$as_me:$LINENO: checking VORBISFILE_CFLAGS" >&5
+echo $ECHO_N "checking VORBISFILE_CFLAGS... $ECHO_C" >&6
+ VORBISFILE_CFLAGS=`$PKG_CONFIG --cflags "vorbisfile >= 1.0"`
+ echo "$as_me:$LINENO: result: $VORBISFILE_CFLAGS" >&5
+echo "${ECHO_T}$VORBISFILE_CFLAGS" >&6
+
+ echo "$as_me:$LINENO: checking VORBISFILE_LIBS" >&5
+echo $ECHO_N "checking VORBISFILE_LIBS... $ECHO_C" >&6
+ VORBISFILE_LIBS=`$PKG_CONFIG --libs "vorbisfile >= 1.0"`
+ echo "$as_me:$LINENO: result: $VORBISFILE_LIBS" >&5
+echo "${ECHO_T}$VORBISFILE_LIBS" >&6
else
- VORBISFILE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "vorbisfile >= 1.0"`
+ VORBISFILE_CFLAGS=""
+ VORBISFILE_LIBS=""
+ ## If we have a custom action on failure, don't print errors, but
+ ## do set a variable so people can do so.
+ VORBISFILE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "vorbisfile >= 1.0"`
+
fi
- # Put the nasty error message in config.log where it belongs
- echo "$VORBISFILE_PKG_ERRORS" >&5
- echo "OGG support disabled"; with_ogg_support=no
-elif test $pkg_failed = untried; then
- echo "OGG support disabled"; with_ogg_support=no
-else
- VORBISFILE_CFLAGS=$pkg_cv_VORBISFILE_CFLAGS
- VORBISFILE_LIBS=$pkg_cv_VORBISFILE_LIBS
- echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6
- :
-fi
+
+
+ else
+ echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
+ echo "*** See http://www.freedesktop.org/software/pkgconfig"
+ fi
+ fi
+
+ if test $succeeded = yes; then
+ :
+ else
+ echo "OGG support disabled"; with_ogg_support=no
+ fi
+
fi
if test "$with_mp3_support" = yes; then
-pkg_failed=no
-echo "$as_me:$LINENO: checking for MAD" >&5
-echo $ECHO_N "checking for MAD... $ECHO_C" >&6
+ succeeded=no
-if test -n "$PKG_CONFIG"; then
- if test -n "$MAD_CFLAGS"; then
- pkg_cv_MAD_CFLAGS="$MAD_CFLAGS"
- else
- if test -n "$PKG_CONFIG" && \
- { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"mad >= 0.10\"") >&5
- ($PKG_CONFIG --exists --print-errors "mad >= 0.10") 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; then
- pkg_cv_MAD_CFLAGS=`$PKG_CONFIG --cflags "mad >= 0.10" 2>/dev/null`
-else
- pkg_failed=yes
-fi
- fi
+ if test -z "$PKG_CONFIG"; then
+ # Extract the first word of "pkg-config", so it can be a program name with args.
+set dummy pkg-config; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
else
- pkg_failed=untried
+ case $PKG_CONFIG in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+ test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
+ ;;
+esac
fi
+PKG_CONFIG=$ac_cv_path_PKG_CONFIG
+
if test -n "$PKG_CONFIG"; then
- if test -n "$MAD_LIBS"; then
- pkg_cv_MAD_LIBS="$MAD_LIBS"
- else
- if test -n "$PKG_CONFIG" && \
- { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"mad >= 0.10\"") >&5
- ($PKG_CONFIG --exists --print-errors "mad >= 0.10") 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; then
- pkg_cv_MAD_LIBS=`$PKG_CONFIG --libs "mad >= 0.10" 2>/dev/null`
-else
- pkg_failed=yes
-fi
- fi
+ echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
+echo "${ECHO_T}$PKG_CONFIG" >&6
else
- pkg_failed=untried
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
fi
+ fi
+ if test "$PKG_CONFIG" = "no" ; then
+ echo "*** The pkg-config script could not be found. Make sure it is"
+ echo "*** in your path, or set the PKG_CONFIG environment variable"
+ echo "*** to the full path to pkg-config."
+ echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
+ else
+ PKG_CONFIG_MIN_VERSION=0.9.0
+ if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
+ echo "$as_me:$LINENO: checking for mad >= 0.10" >&5
+echo $ECHO_N "checking for mad >= 0.10... $ECHO_C" >&6
-if test $pkg_failed = yes; then
+ if $PKG_CONFIG --exists "mad >= 0.10" ; then
+ echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+ succeeded=yes
-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
-else
- _pkg_short_errors_supported=no
-fi
- if test $_pkg_short_errors_supported = yes; then
- MAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "mad >= 0.10"`
+ echo "$as_me:$LINENO: checking MAD_CFLAGS" >&5
+echo $ECHO_N "checking MAD_CFLAGS... $ECHO_C" >&6
+ MAD_CFLAGS=`$PKG_CONFIG --cflags "mad >= 0.10"`
+ echo "$as_me:$LINENO: result: $MAD_CFLAGS" >&5
+echo "${ECHO_T}$MAD_CFLAGS" >&6
+
+ echo "$as_me:$LINENO: checking MAD_LIBS" >&5
+echo $ECHO_N "checking MAD_LIBS... $ECHO_C" >&6
+ MAD_LIBS=`$PKG_CONFIG --libs "mad >= 0.10"`
+ echo "$as_me:$LINENO: result: $MAD_LIBS" >&5
+echo "${ECHO_T}$MAD_LIBS" >&6
else
- MAD_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mad >= 0.10"`
+ MAD_CFLAGS=""
+ MAD_LIBS=""
+ ## If we have a custom action on failure, don't print errors, but
+ ## do set a variable so people can do so.
+ MAD_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mad >= 0.10"`
+
fi
- # Put the nasty error message in config.log where it belongs
- echo "$MAD_PKG_ERRORS" >&5
- echo "libMAD detection via pkg-config failed"; with_mp3_support=no
-elif test $pkg_failed = untried; then
- echo "libMAD detection via pkg-config failed"; with_mp3_support=no
-else
- MAD_CFLAGS=$pkg_cv_MAD_CFLAGS
- MAD_LIBS=$pkg_cv_MAD_LIBS
- echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6
- :
-fi
+
+
+ else
+ echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
+ echo "*** See http://www.freedesktop.org/software/pkgconfig"
+ fi
+ fi
+
+ if test $succeeded = yes; then
+ :
+ else
+ echo "libMAD detection via pkg-config failed"; with_mp3_support=no
+ fi
+
if test "$with_mp3_support" = no; then
echo "$as_me:$LINENO: checking for mad_stream_init in -lmad" >&5
echo $ECHO_N "checking for mad_stream_init in -lmad... $ECHO_C" >&6
@@ -10971,82 +10936,109 @@
fi
fi
-if test "$with_mp3_support" = yes || test "$with_ogg_support" = yes || test "$en_xdao" = yes; then
-pkg_failed=no
-echo "$as_me:$LINENO: checking for AO" >&5
-echo $ECHO_N "checking for AO... $ECHO_C" >&6
+ succeeded=no
-if test -n "$PKG_CONFIG"; then
- if test -n "$AO_CFLAGS"; then
- pkg_cv_AO_CFLAGS="$AO_CFLAGS"
- else
- if test -n "$PKG_CONFIG" && \
- { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"ao >= 0.8\"") >&5
- ($PKG_CONFIG --exists --print-errors "ao >= 0.8") 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; then
- pkg_cv_AO_CFLAGS=`$PKG_CONFIG --cflags "ao >= 0.8" 2>/dev/null`
-else
- pkg_failed=yes
-fi
- fi
+ if test -z "$PKG_CONFIG"; then
+ # Extract the first word of "pkg-config", so it can be a program name with args.
+set dummy pkg-config; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
else
- pkg_failed=untried
+ case $PKG_CONFIG in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+ test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
+ ;;
+esac
fi
+PKG_CONFIG=$ac_cv_path_PKG_CONFIG
+
if test -n "$PKG_CONFIG"; then
- if test -n "$AO_LIBS"; then
- pkg_cv_AO_LIBS="$AO_LIBS"
- else
- if test -n "$PKG_CONFIG" && \
- { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"ao >= 0.8\"") >&5
- ($PKG_CONFIG --exists --print-errors "ao >= 0.8") 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; then
- pkg_cv_AO_LIBS=`$PKG_CONFIG --libs "ao >= 0.8" 2>/dev/null`
-else
- pkg_failed=yes
-fi
- fi
+ echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
+echo "${ECHO_T}$PKG_CONFIG" >&6
else
- pkg_failed=untried
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
fi
+ fi
+if test "$with_mp3_support" = yes || test "$with_ogg_support" = yes || test "$en_xdao" = yes; then
-if test $pkg_failed = yes; then
+ if test "$PKG_CONFIG" = "no" ; then
+ echo "*** The pkg-config script could not be found. Make sure it is"
+ echo "*** in your path, or set the PKG_CONFIG environment variable"
+ echo "*** to the full path to pkg-config."
+ echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
+ else
+ PKG_CONFIG_MIN_VERSION=0.9.0
+ if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
+ echo "$as_me:$LINENO: checking for ao >= 0.8" >&5
+echo $ECHO_N "checking for ao >= 0.8... $ECHO_C" >&6
-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
-else
- _pkg_short_errors_supported=no
-fi
- if test $_pkg_short_errors_supported = yes; then
- AO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "ao >= 0.8"`
+ if $PKG_CONFIG --exists "ao >= 0.8" ; then
+ echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+ succeeded=yes
+
+ echo "$as_me:$LINENO: checking AO_CFLAGS" >&5
+echo $ECHO_N "checking AO_CFLAGS... $ECHO_C" >&6
+ AO_CFLAGS=`$PKG_CONFIG --cflags "ao >= 0.8"`
+ echo "$as_me:$LINENO: result: $AO_CFLAGS" >&5
+echo "${ECHO_T}$AO_CFLAGS" >&6
+
+ echo "$as_me:$LINENO: checking AO_LIBS" >&5
+echo $ECHO_N "checking AO_LIBS... $ECHO_C" >&6
+ AO_LIBS=`$PKG_CONFIG --libs "ao >= 0.8"`
+ echo "$as_me:$LINENO: result: $AO_LIBS" >&5
+echo "${ECHO_T}$AO_LIBS" >&6
else
- AO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ao >= 0.8"`
+ AO_CFLAGS=""
+ AO_LIBS=""
+ ## If we have a custom action on failure, don't print errors, but
+ ## do set a variable so people can do so.
+ AO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ao >= 0.8"`
+
fi
- # Put the nasty error message in config.log where it belongs
- echo "$AO_PKG_ERRORS" >&5
- echo "Building of gcdmaster disabled"; with_ogg_support=no;
- with_mp3_support=no; en_xdao=no
-elif test $pkg_failed = untried; then
- echo "Building of gcdmaster disabled"; with_ogg_support=no;
- with_mp3_support=no; en_xdao=no
-else
- AO_CFLAGS=$pkg_cv_AO_CFLAGS
- AO_LIBS=$pkg_cv_AO_LIBS
- echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6
+
+
+ else
+ echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
+ echo "*** See http://www.freedesktop.org/software/pkgconfig"
+ fi
+ fi
+
+ if test $succeeded = yes; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_AO 1
_ACEOF
-fi
+ else
+ echo "Building of gcdmaster disabled"; with_ogg_support=no;
+ with_mp3_support=no; en_xdao=no
+ fi
+
fi
if test "$with_ogg_support" = yes; then
@@ -11922,7 +11914,6 @@
s,@LAME_CFLAGS@,$LAME_CFLAGS,;t t
s,@LAME_LIBS@,$LAME_LIBS,;t t
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
-s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
s,@SIGCPP2_CFLAGS@,$SIGCPP2_CFLAGS,;t t
s,@SIGCPP2_LIBS@,$SIGCPP2_LIBS,;t t
s,@GTKMM2_CFLAGS@,$GTKMM2_CFLAGS,;t t
|