Subversion Repositories public

Rev

Rev 141 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 141 Rev 155
Line 24509... Line 24509...
24509
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24509
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24510
fi
24510
fi
24511
 
24511
 
24512
fi
24512
fi
24513
 
24513
 
24514
   
24514
 
24515
   # more headers that need to be explicitly included on darwin
24515
   # more headers that need to be explicitly included on darwin
24516
   
24516
   
24517
 
24517
 
24518
for ac_header in sys/types.h stdint.h
24518
for ac_header in sys/types.h stdint.h
24519
do
24519
do
Line 25004... Line 25004...
25004
fi
25004
fi
25005
 
25005
 
25006
done
25006
done
25007
 
25007
 
25008
 
25008
 
-
 
25009
   # Geodetic library
-
 
25010
   if test "${ac_cv_header_gdal_gdal_h+set}" = set; then
-
 
25011
  { echo "$as_me:$LINENO: checking for gdal/gdal.h" >&5
-
 
25012
echo $ECHO_N "checking for gdal/gdal.h... $ECHO_C" >&6; }
-
 
25013
if test "${ac_cv_header_gdal_gdal_h+set}" = set; then
-
 
25014
  echo $ECHO_N "(cached) $ECHO_C" >&6
-
 
25015
fi
-
 
25016
{ echo "$as_me:$LINENO: result: $ac_cv_header_gdal_gdal_h" >&5
-
 
25017
echo "${ECHO_T}$ac_cv_header_gdal_gdal_h" >&6; }
-
 
25018
else
-
 
25019
  # Is the header compilable?
-
 
25020
{ echo "$as_me:$LINENO: checking gdal/gdal.h usability" >&5
-
 
25021
echo $ECHO_N "checking gdal/gdal.h usability... $ECHO_C" >&6; }
-
 
25022
cat >conftest.$ac_ext <<_ACEOF
-
 
25023
/* confdefs.h.  */
-
 
25024
_ACEOF
-
 
25025
cat confdefs.h >>conftest.$ac_ext
-
 
25026
cat >>conftest.$ac_ext <<_ACEOF
-
 
25027
/* end confdefs.h.  */
-
 
25028
$ac_includes_default
-
 
25029
@%:@include <gdal/gdal.h>
-
 
25030
_ACEOF
-
 
25031
rm -f conftest.$ac_objext
-
 
25032
if { (ac_try="$ac_compile"
-
 
25033
case "(($ac_try" in
-
 
25034
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-
 
25035
  *) ac_try_echo=$ac_try;;
-
 
25036
esac
-
 
25037
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-
 
25038
  (eval "$ac_compile") 2>conftest.er1
-
 
25039
  ac_status=$?
-
 
25040
  grep -v '^ *+' conftest.er1 >conftest.err
-
 
25041
  rm -f conftest.er1
-
 
25042
  cat conftest.err >&5
-
 
25043
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-
 
25044
  (exit $ac_status); } && {
-
 
25045
	 test -z "$ac_c_werror_flag" ||
-
 
25046
	 test ! -s conftest.err
-
 
25047
       } && test -s conftest.$ac_objext; then
-
 
25048
  ac_header_compiler=yes
-
 
25049
else
-
 
25050
  echo "$as_me: failed program was:" >&5
-
 
25051
sed 's/^/| /' conftest.$ac_ext >&5
-
 
25052
 
-
 
25053
	ac_header_compiler=no
-
 
25054
fi
-
 
25055
 
-
 
25056
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-
 
25057
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
-
 
25058
echo "${ECHO_T}$ac_header_compiler" >&6; }
-
 
25059
 
-
 
25060
# Is the header present?
-
 
25061
{ echo "$as_me:$LINENO: checking gdal/gdal.h presence" >&5
-
 
25062
echo $ECHO_N "checking gdal/gdal.h presence... $ECHO_C" >&6; }
-
 
25063
cat >conftest.$ac_ext <<_ACEOF
-
 
25064
/* confdefs.h.  */
-
 
25065
_ACEOF
-
 
25066
cat confdefs.h >>conftest.$ac_ext
-
 
25067
cat >>conftest.$ac_ext <<_ACEOF
-
 
25068
/* end confdefs.h.  */
-
 
25069
@%:@include <gdal/gdal.h>
-
 
25070
_ACEOF
-
 
25071
if { (ac_try="$ac_cpp conftest.$ac_ext"
-
 
25072
case "(($ac_try" in
-
 
25073
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-
 
25074
  *) ac_try_echo=$ac_try;;
-
 
25075
esac
-
 
25076
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-
 
25077
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
-
 
25078
  ac_status=$?
-
 
25079
  grep -v '^ *+' conftest.er1 >conftest.err
-
 
25080
  rm -f conftest.er1
-
 
25081
  cat conftest.err >&5
-
 
25082
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-
 
25083
  (exit $ac_status); } >/dev/null && {
-
 
25084
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
-
 
25085
	 test ! -s conftest.err
-
 
25086
       }; then
-
 
25087
  ac_header_preproc=yes
-
 
25088
else
-
 
25089
  echo "$as_me: failed program was:" >&5
-
 
25090
sed 's/^/| /' conftest.$ac_ext >&5
-
 
25091
 
-
 
25092
  ac_header_preproc=no
-
 
25093
fi
-
 
25094
 
-
 
25095
rm -f conftest.err conftest.$ac_ext
-
 
25096
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
-
 
25097
echo "${ECHO_T}$ac_header_preproc" >&6; }
-
 
25098
 
-
 
25099
# So?  What about this header?
-
 
25100
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
-
 
25101
  yes:no: )
-
 
25102
    { echo "$as_me:$LINENO: WARNING: gdal/gdal.h: accepted by the compiler, rejected by the preprocessor!" >&5
-
 
25103
echo "$as_me: WARNING: gdal/gdal.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
-
 
25104
    { echo "$as_me:$LINENO: WARNING: gdal/gdal.h: proceeding with the compiler's result" >&5
-
 
25105
echo "$as_me: WARNING: gdal/gdal.h: proceeding with the compiler's result" >&2;}
-
 
25106
    ac_header_preproc=yes
-
 
25107
    ;;
-
 
25108
  no:yes:* )
-
 
25109
    { echo "$as_me:$LINENO: WARNING: gdal/gdal.h: present but cannot be compiled" >&5
-
 
25110
echo "$as_me: WARNING: gdal/gdal.h: present but cannot be compiled" >&2;}
-
 
25111
    { echo "$as_me:$LINENO: WARNING: gdal/gdal.h:     check for missing prerequisite headers?" >&5
-
 
25112
echo "$as_me: WARNING: gdal/gdal.h:     check for missing prerequisite headers?" >&2;}
-
 
25113
    { echo "$as_me:$LINENO: WARNING: gdal/gdal.h: see the Autoconf documentation" >&5
-
 
25114
echo "$as_me: WARNING: gdal/gdal.h: see the Autoconf documentation" >&2;}
-
 
25115
    { echo "$as_me:$LINENO: WARNING: gdal/gdal.h:     section \"Present But Cannot Be Compiled\"" >&5
-
 
25116
echo "$as_me: WARNING: gdal/gdal.h:     section \"Present But Cannot Be Compiled\"" >&2;}
-
 
25117
    { echo "$as_me:$LINENO: WARNING: gdal/gdal.h: proceeding with the preprocessor's result" >&5
-
 
25118
echo "$as_me: WARNING: gdal/gdal.h: proceeding with the preprocessor's result" >&2;}
-
 
25119
    { echo "$as_me:$LINENO: WARNING: gdal/gdal.h: in the future, the compiler will take precedence" >&5
-
 
25120
echo "$as_me: WARNING: gdal/gdal.h: in the future, the compiler will take precedence" >&2;}
-
 
25121
    
-
 
25122
    ;;
-
 
25123
esac
-
 
25124
{ echo "$as_me:$LINENO: checking for gdal/gdal.h" >&5
-
 
25125
echo $ECHO_N "checking for gdal/gdal.h... $ECHO_C" >&6; }
-
 
25126
if test "${ac_cv_header_gdal_gdal_h+set}" = set; then
-
 
25127
  echo $ECHO_N "(cached) $ECHO_C" >&6
-
 
25128
else
-
 
25129
  ac_cv_header_gdal_gdal_h=$ac_header_preproc
-
 
25130
fi
-
 
25131
{ echo "$as_me:$LINENO: result: $ac_cv_header_gdal_gdal_h" >&5
-
 
25132
echo "${ECHO_T}$ac_cv_header_gdal_gdal_h" >&6; }
-
 
25133
 
-
 
25134
fi
-
 
25135
if test $ac_cv_header_gdal_gdal_h = yes; then
-
 
25136
  
-
 
25137
     
-
 
25138
cat >>confdefs.h <<\_ACEOF
-
 
25139
@%:@define HAVE_GDAL 1
-
 
25140
_ACEOF
-
 
25141
 
-
 
25142
   
-
 
25143
fi
-
 
25144
 
-
 
25145
 
-
 
25146
 
-
 
25147
   { echo "$as_me:$LINENO: checking for GDALAllRegister" >&5
-
 
25148
echo $ECHO_N "checking for GDALAllRegister... $ECHO_C" >&6; }
-
 
25149
if test "${ac_cv_func_GDALAllRegister+set}" = set; then
-
 
25150
  echo $ECHO_N "(cached) $ECHO_C" >&6
-
 
25151
else
-
 
25152
  cat >conftest.$ac_ext <<_ACEOF
-
 
25153
/* confdefs.h.  */
-
 
25154
_ACEOF
-
 
25155
cat confdefs.h >>conftest.$ac_ext
-
 
25156
cat >>conftest.$ac_ext <<_ACEOF
-
 
25157
/* end confdefs.h.  */
-
 
25158
/* Define GDALAllRegister to an innocuous variant, in case <limits.h> declares GDALAllRegister.
-
 
25159
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
-
 
25160
#define GDALAllRegister innocuous_GDALAllRegister
-
 
25161
 
-
 
25162
/* System header to define __stub macros and hopefully few prototypes,
-
 
25163
    which can conflict with char GDALAllRegister (); below.
-
 
25164
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
-
 
25165
    <limits.h> exists even on freestanding compilers.  */
-
 
25166
 
-
 
25167
#ifdef __STDC__
-
 
25168
# include <limits.h>
-
 
25169
#else
-
 
25170
# include <assert.h>
-
 
25171
#endif
-
 
25172
 
-
 
25173
#undef GDALAllRegister
-
 
25174
 
-
 
25175
/* Override any GCC internal prototype to avoid an error.
-
 
25176
   Use char because int might match the return type of a GCC
-
 
25177
   builtin and then its argument prototype would still apply.  */
-
 
25178
#ifdef __cplusplus
-
 
25179
extern "C"
-
 
25180
#endif
-
 
25181
char GDALAllRegister ();
-
 
25182
/* The GNU C library defines this for functions which it implements
-
 
25183
    to always fail with ENOSYS.  Some functions are actually named
-
 
25184
    something starting with __ and the normal name is an alias.  */
-
 
25185
#if defined __stub_GDALAllRegister || defined __stub___GDALAllRegister
-
 
25186
choke me
-
 
25187
#endif
-
 
25188
 
-
 
25189
int
-
 
25190
main ()
-
 
25191
{
-
 
25192
return GDALAllRegister ();
-
 
25193
  ;
-
 
25194
  return 0;
-
 
25195
}
-
 
25196
_ACEOF
-
 
25197
rm -f conftest.$ac_objext conftest$ac_exeext
-
 
25198
if { (ac_try="$ac_link"
-
 
25199
case "(($ac_try" in
-
 
25200
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-
 
25201
  *) ac_try_echo=$ac_try;;
-
 
25202
esac
-
 
25203
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-
 
25204
  (eval "$ac_link") 2>conftest.er1
-
 
25205
  ac_status=$?
-
 
25206
  grep -v '^ *+' conftest.er1 >conftest.err
-
 
25207
  rm -f conftest.er1
-
 
25208
  cat conftest.err >&5
-
 
25209
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-
 
25210
  (exit $ac_status); } && {
-
 
25211
	 test -z "$ac_c_werror_flag" ||
-
 
25212
	 test ! -s conftest.err
-
 
25213
       } && test -s conftest$ac_exeext &&
-
 
25214
       $as_test_x conftest$ac_exeext; then
-
 
25215
  ac_cv_func_GDALAllRegister=yes
-
 
25216
else
-
 
25217
  echo "$as_me: failed program was:" >&5
-
 
25218
sed 's/^/| /' conftest.$ac_ext >&5
-
 
25219
 
-
 
25220
	ac_cv_func_GDALAllRegister=no
-
 
25221
fi
-
 
25222
 
-
 
25223
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
-
 
25224
      conftest$ac_exeext conftest.$ac_ext
-
 
25225
fi
-
 
25226
{ echo "$as_me:$LINENO: result: $ac_cv_func_GDALAllRegister" >&5
-
 
25227
echo "${ECHO_T}$ac_cv_func_GDALAllRegister" >&6; }
-
 
25228
if test $ac_cv_func_GDALAllRegister = yes; then
-
 
25229
  :
-
 
25230
else
-
 
25231
  
-
 
25232
{ echo "$as_me:$LINENO: checking for GDALAllRegister in -lgdal1.5.0" >&5
-
 
25233
echo $ECHO_N "checking for GDALAllRegister in -lgdal1.5.0... $ECHO_C" >&6; }
-
 
25234
if test "${ac_cv_lib_gdal1_5_0_GDALAllRegister+set}" = set; then
-
 
25235
  echo $ECHO_N "(cached) $ECHO_C" >&6
-
 
25236
else
-
 
25237
  ac_check_lib_save_LIBS=$LIBS
-
 
25238
LIBS="-lgdal1.5.0  $LIBS"
-
 
25239
cat >conftest.$ac_ext <<_ACEOF
-
 
25240
/* confdefs.h.  */
-
 
25241
_ACEOF
-
 
25242
cat confdefs.h >>conftest.$ac_ext
-
 
25243
cat >>conftest.$ac_ext <<_ACEOF
-
 
25244
/* end confdefs.h.  */
-
 
25245
 
-
 
25246
/* Override any GCC internal prototype to avoid an error.
-
 
25247
   Use char because int might match the return type of a GCC
-
 
25248
   builtin and then its argument prototype would still apply.  */
-
 
25249
#ifdef __cplusplus
-
 
25250
extern "C"
-
 
25251
#endif
-
 
25252
char GDALAllRegister ();
-
 
25253
int
-
 
25254
main ()
-
 
25255
{
-
 
25256
return GDALAllRegister ();
-
 
25257
  ;
-
 
25258
  return 0;
-
 
25259
}
-
 
25260
_ACEOF
-
 
25261
rm -f conftest.$ac_objext conftest$ac_exeext
-
 
25262
if { (ac_try="$ac_link"
-
 
25263
case "(($ac_try" in
-
 
25264
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-
 
25265
  *) ac_try_echo=$ac_try;;
-
 
25266
esac
-
 
25267
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-
 
25268
  (eval "$ac_link") 2>conftest.er1
-
 
25269
  ac_status=$?
-
 
25270
  grep -v '^ *+' conftest.er1 >conftest.err
-
 
25271
  rm -f conftest.er1
-
 
25272
  cat conftest.err >&5
-
 
25273
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-
 
25274
  (exit $ac_status); } && {
-
 
25275
	 test -z "$ac_c_werror_flag" ||
-
 
25276
	 test ! -s conftest.err
-
 
25277
       } && test -s conftest$ac_exeext &&
-
 
25278
       $as_test_x conftest$ac_exeext; then
-
 
25279
  ac_cv_lib_gdal1_5_0_GDALAllRegister=yes
-
 
25280
else
-
 
25281
  echo "$as_me: failed program was:" >&5
-
 
25282
sed 's/^/| /' conftest.$ac_ext >&5
-
 
25283
 
-
 
25284
	ac_cv_lib_gdal1_5_0_GDALAllRegister=no
-
 
25285
fi
-
 
25286
 
-
 
25287
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
-
 
25288
      conftest$ac_exeext conftest.$ac_ext
-
 
25289
LIBS=$ac_check_lib_save_LIBS
-
 
25290
fi
-
 
25291
{ echo "$as_me:$LINENO: result: $ac_cv_lib_gdal1_5_0_GDALAllRegister" >&5
-
 
25292
echo "${ECHO_T}$ac_cv_lib_gdal1_5_0_GDALAllRegister" >&6; }
-
 
25293
if test $ac_cv_lib_gdal1_5_0_GDALAllRegister = yes; then
-
 
25294
  cat >>confdefs.h <<_ACEOF
-
 
25295
@%:@define HAVE_LIBGDAL1_5_0 1
-
 
25296
_ACEOF
-
 
25297
 
-
 
25298
  LIBS="-lgdal1.5.0 $LIBS"
-
 
25299
 
-
 
25300
else
-
 
25301
   echo "ERROR: GDAL library v1.5.0 was not found!" 
-
 
25302
fi
-
 
25303
 
-
 
25304
fi
-
 
25305
 
-
 
25306
 
25009
   # CoreAudio framework
25307
   # CoreAudio framework
25010
   if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
25308
   if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
25011
  { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
25309
  { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
25012
echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
25310
echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
25013
if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
25311
if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then