Changeset d307283d3e0731d50727b21fd500bad39a5c51d2

Show
Ignore:
Timestamp:
27/07/01 18:23:14 (7 years ago)
Author:
Sam Hocevar <sam@videolan.org>
git-committer:
Sam Hocevar <sam@videolan.org> 996250994 +0000
git-parent:

[c085b215f4527c99b144a3683560901f5da8f1f8]

git-author:
Sam Hocevar <sam@videolan.org> 996250994 +0000
Message:
  • Additional fixes to the sdl-config detection.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • ChangeLog

    rc085b21 rd307283  
    99Fri, 27 Jul 2001 03:30:44 +0200 
    1010 
     11  * Additional fixes to the sdl-config detection. 
    1112  * Added a make uninstall rule. 
    1213  * Changed libdvdcss API to force binary incompatibility. Yeah, this is 
  • configure

    r4945d2b rd307283  
    41324132echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
    41334133echo "configure:4134: checking for $ac_word" >&5 
    4134 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then 
    4135   echo $ac_n "(cached) $ac_c" 1>&6 
    4136 else 
    4137   case "$SDL_CONFIG" in 
     4134if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then 
     4135  echo $ac_n "(cached) $ac_c" 1>&6 
     4136else 
     4137  case "$SDL11_CONFIG" in 
    41384138  /*) 
    4139   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. 
     4139  ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path. 
    41404140  ;; 
    41414141  ?:/*)           
    4142   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path. 
     4142  ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path. 
    41434143  ;; 
    41444144  *) 
     
    41484148    test -z "$ac_dir" && ac_dir=. 
    41494149    if test -f $ac_dir/$ac_word; then 
    4150       ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word" 
     4150      ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word" 
    41514151      break 
    41524152    fi 
    41534153  done 
    41544154  IFS="$ac_save_ifs" 
    4155   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" 
     4155  test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no" 
    41564156  ;; 
    41574157esac 
    41584158fi 
    4159 SDL_CONFIG="$ac_cv_path_SDL_CONFIG" 
    4160 if test -n "$SDL_CONFIG"; then 
    4161   echo "$ac_t""$SDL_CONFIG" 1>&6 
    4162 else 
    4163   echo "$ac_t""no" 1>&6 
    4164 fi 
    4165  
     4159SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG" 
     4160if test -n "$SDL11_CONFIG"; then 
     4161  echo "$ac_t""$SDL11_CONFIG" 1>&6 
     4162else 
     4163  echo "$ac_t""no" 1>&6 
     4164fi 
     4165 
     4166    SDL_CONFIG=${SDL11_CONFIG} 
    41664167    SDL_HEADER="SDL11/SDL.h" 
    41674168  fi 
     
    41704171set dummy sdl12-config; ac_word=$2 
    41714172echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
    4172 echo "configure:4173: checking for $ac_word" >&5 
    4173 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then 
    4174   echo $ac_n "(cached) $ac_c" 1>&6 
    4175 else 
    4176   case "$SDL_CONFIG" in 
     4173echo "configure:4174: checking for $ac_word" >&5 
     4174if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then 
     4175  echo $ac_n "(cached) $ac_c" 1>&6 
     4176else 
     4177  case "$SDL12_CONFIG" in 
    41774178  /*) 
    4178   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. 
     4179  ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path. 
    41794180  ;; 
    41804181  ?:/*)           
    4181   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path. 
     4182  ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path. 
    41824183  ;; 
    41834184  *) 
     
    41874188    test -z "$ac_dir" && ac_dir=. 
    41884189    if test -f $ac_dir/$ac_word; then 
    4189       ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word" 
     4190      ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word" 
    41904191      break 
    41914192    fi 
    41924193  done 
    41934194  IFS="$ac_save_ifs" 
    4194   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" 
     4195  test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no" 
    41954196  ;; 
    41964197esac 
    41974198fi 
    4198 SDL_CONFIG="$ac_cv_path_SDL_CONFIG" 
    4199 if test -n "$SDL_CONFIG"; then 
    4200   echo "$ac_t""$SDL_CONFIG" 1>&6 
    4201 else 
    4202   echo "$ac_t""no" 1>&6 
    4203 fi 
    4204  
     4199SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG" 
     4200if test -n "$SDL12_CONFIG"; then 
     4201  echo "$ac_t""$SDL12_CONFIG" 1>&6 
     4202else 
     4203  echo "$ac_t""no" 1>&6 
     4204fi 
     4205 
     4206    SDL_CONFIG=${SDL12_CONFIG} 
    42054207    SDL_HEADER="SDL12/SDL.h" 
    42064208  fi 
     
    42104212ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 
    42114213echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 
    4212 echo "configure:4213: checking for $ac_hdr" >&5 
     4214echo "configure:4215: checking for $ac_hdr" >&5 
    42134215if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 
    42144216  echo $ac_n "(cached) $ac_c" 1>&6 
    42154217else 
    42164218  cat > conftest.$ac_ext <<EOF 
    4217 #line 4218 "configure" 
     4219#line 4220 "configure" 
    42184220#include "confdefs.h" 
    42194221#include <$ac_hdr> 
    42204222EOF 
    42214223ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    4222 { (eval echo configure:4223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     4224{ (eval echo configure:4225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    42234225ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    42244226if test -z "$ac_err"; then 
     
    42804282ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 
    42814283echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 
    4282 echo "configure:4283: checking for $ac_hdr" >&5 
     4284echo "configure:4285: checking for $ac_hdr" >&5 
    42834285if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 
    42844286  echo $ac_n "(cached) $ac_c" 1>&6 
    42854287else 
    42864288  cat > conftest.$ac_ext <<EOF 
    4287 #line 4288 "configure" 
     4289#line 4290 "configure" 
    42884290#include "confdefs.h" 
    42894291#include <$ac_hdr> 
    42904292EOF 
    42914293ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    4292 { (eval echo configure:4293: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     4294{ (eval echo configure:4295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    42934295ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    42944296if test -z "$ac_err"; then 
     
    43284330ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 
    43294331echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 
    4330 echo "configure:4331: checking for $ac_hdr" >&5 
     4332echo "configure:4333: checking for $ac_hdr" >&5 
    43314333if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 
    43324334  echo $ac_n "(cached) $ac_c" 1>&6 
    43334335else 
    43344336  cat > conftest.$ac_ext <<EOF 
    4335 #line 4336 "configure" 
     4337#line 4338 "configure" 
    43364338#include "confdefs.h" 
    43374339#include <$ac_hdr> 
    43384340EOF 
    43394341ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    4340 { (eval echo configure:4341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     4342{ (eval echo configure:4343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    43414343ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    43424344if test -z "$ac_err"; then 
     
    44424444set dummy gtk-config; ac_word=$2 
    44434445echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
    4444 echo "configure:4445: checking for $ac_word" >&5 
     4446echo "configure:4447: checking for $ac_word" >&5 
    44454447if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then 
    44464448  echo $ac_n "(cached) $ac_c" 1>&6 
     
    45024504ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 
    45034505echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 
    4504 echo "configure:4505: checking for $ac_hdr" >&5 
     4506echo "configure:4507: checking for $ac_hdr" >&5 
    45054507if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 
    45064508  echo $ac_n "(cached) $ac_c" 1>&6 
    45074509else 
    45084510  cat > conftest.$ac_ext <<EOF 
    4509 #line 4510 "configure" 
     4511#line 4512 "configure" 
    45104512#include "confdefs.h" 
    45114513#include <$ac_hdr> 
    45124514EOF 
    45134515ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    4514 { (eval echo configure:4515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     4516{ (eval echo configure:4517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    45154517ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    45164518if test -z "$ac_err"; then 
     
    45644566ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 
    45654567echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 
    4566 echo "configure:4567: checking for $ac_hdr" >&5 
     4568echo "configure:4569: checking for $ac_hdr" >&5 
    45674569if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 
    45684570  echo $ac_n "(cached) $ac_c" 1>&6 
    45694571else 
    45704572  cat > conftest.$ac_ext <<EOF 
    4571 #line 4572 "configure" 
     4573#line 4574 "configure" 
    45724574#include "confdefs.h" 
    45734575#include <$ac_hdr> 
    45744576EOF 
    45754577ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    4576 { (eval echo configure:4577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     4578{ (eval echo configure:4579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    45774579ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    45784580if test -z "$ac_err"; then 
     
    46144616     ac_safe=`echo "sys/asoundlib.h" | sed 'y%./+-%__p_%'` 
    46154617echo $ac_n "checking for sys/asoundlib.h""... $ac_c" 1>&6 
    4616 echo "configure:4617: checking for sys/asoundlib.h" >&5 
     4618echo "configure:4619: checking for sys/asoundlib.h" >&5 
    46174619if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 
    46184620  echo $ac_n "(cached) $ac_c" 1>&6 
    46194621else 
    46204622  cat > conftest.$ac_ext <<EOF 
    4621 #line 4622 "configure" 
     4623#line 4624 "configure" 
    46224624#include "confdefs.h" 
    46234625#include <sys/asoundlib.h> 
    46244626EOF 
    46254627ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    4626 { (eval echo configure:4627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     4628{ (eval echo configure:4629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    46274629ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    46284630if test -z "$ac_err"; then 
     
    46414643  echo "$ac_t""yes" 1>&6 
    46424644  echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6 
    4643 echo "configure:4644: checking for main in -lasound" >&5 
     4645echo "configure:4646: checking for main in -lasound" >&5 
    46444646ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'` 
    46454647if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
     
    46494651LIBS="-lasound  $LIBS" 
    46504652cat > conftest.$ac_ext <<EOF 
    4651 #line 4652 "configure" 
     4653#line 4654 "configure" 
    46524654#include "confdefs.h" 
    46534655 
     
    46564658; return 0; } 
    46574659EOF 
    4658 if { (eval echo configure:4659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     4660if { (eval echo configure:4661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    46594661  rm -rf conftest* 
    46604662  eval "ac_cv_lib_$ac_lib_var=yes" 
     
    48964898s%@ESD_CONFIG@%$ESD_CONFIG%g 
    48974899s%@SDL_CONFIG@%$SDL_CONFIG%g 
     4900s%@SDL11_CONFIG@%$SDL11_CONFIG%g 
     4901s%@SDL12_CONFIG@%$SDL12_CONFIG%g 
    48984902s%@GTK_CONFIG@%$GTK_CONFIG%g 
    48994903s%@SYS@%$SYS%g 
  • configure.in

    r4945d2b rd307283  
    537537  SDL_HEADER="SDL/SDL.h" 
    538538  if test x${SDL_CONFIG} = xno; then 
    539     AC_PATH_PROG(SDL_CONFIG, sdl11-config, no) 
     539    AC_PATH_PROG(SDL11_CONFIG, sdl11-config, no) 
     540    SDL_CONFIG=${SDL11_CONFIG} 
    540541    SDL_HEADER="SDL11/SDL.h" 
    541542  fi 
    542543  if test x${SDL_CONFIG} = xno; then 
    543     AC_PATH_PROG(SDL_CONFIG, sdl12-config, no) 
     544    AC_PATH_PROG(SDL12_CONFIG, sdl12-config, no) 
     545    SDL_CONFIG=${SDL12_CONFIG} 
    544546    SDL_HEADER="SDL12/SDL.h" 
    545547  fi