]> code.delx.au - pulseaudio/commitdiff
Fix default.pa on non udev systems
authorMaarten Bosmans <mkbosmans@gmail.com>
Fri, 5 Aug 2011 13:33:48 +0000 (15:33 +0200)
committerColin Guthrie <colin@mageia.org>
Mon, 8 Aug 2011 08:14:59 +0000 (10:14 +0200)
src/daemon/default.pa.in
src/daemon/system.pa.in

index 605f42ca922a6cbbf07d52917f5b3d2c2aabb5e9..e5dd28cb854b89a553c3a2269bc00e4c4f2d0625 100755 (executable)
@@ -64,18 +64,18 @@ ifelse(@HAVE_MKFIFO@, 1, [dnl
 ])dnl
 
 ### Automatically load driver modules depending on the hardware available
-ifelse(1, @HAVE_UDEV@, [dnl
+ifelse(@HAVE_UDEV@, 1, [dnl
 .ifexists module-udev-detect@PA_SOEXT@
 load-module module-udev-detect
 .else
-], @HAVE_HAL@, [dnl
+], @HAVE_HAL@, 1, [dnl
 .ifexists module-hal-detect@PA_SOEXT@
 load-module module-hal-detect
 .else
 ], [dnl
 .ifexists module-detect@PA_SOEXT@
 ])dnl
-### Use the static hardware detection module (for systems that lack udev support)
+### Use the static hardware detection module (for systems that lack udev/hal support)
 load-module module-detect
 .endif
 
index aaefd1d1022ddb5b1f6fdd5f2f75544a679b3dc7..0cd10b83d70d93217186c984bedc32c683fabc6f 100755 (executable)
 
 # This startup script is used only if PulseAudio is started in system
 # mode.
+changequote(`[', `]')dnl Set up m4 quoting
 
 ### Automatically load driver modules depending on the hardware available
+ifelse(@HAVE_UDEV@, 1, [dnl
 .ifexists module-udev-detect@PA_SOEXT@
 load-module module-udev-detect
 .else
-### Alternatively use the static hardware detection module (for systems that
-### lack udev support)
+], @HAVE_HAL@, 1, [dnl
+.ifexists module-hal-detect@PA_SOEXT@
+load-module module-hal-detect
+.else
+], [dnl
+.ifexists module-detect@PA_SOEXT@
+])dnl
+### Use the static hardware detection module (for systems that lack udev/hal support)
 load-module module-detect
 .endif